# %%user\_email%% Replacement Code no longer working in emails

**URL:** <https://forums.wpsharks.com/t/user-email-replacement-code-no-longer-working-in-emails/13719>\
**Category:** s2Member\
**Created:** [November 1, 2026, 5:14am UTC](https://forums.wpsharks.com/t/user-email-replacement-code-no-longer-working-in-emails/13719 "2026-11-01T05:14:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hermione](https://forums.wpsharks.com/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@Hermione](https://forums.wpsharks.com/u/Hermione)\
**Post date:** [November 1, 2026, 5:14am UTC](https://forums.wpsharks.com/t/user-email-replacement-code-no-longer-working-in-emails/13719/1 "2026-11-01T05:14:36Z")

</div>

We use Stripe as a payment gateway. All payments are Modifications, and should generate a Modification Confirmation email to the renewing member. These emails are being generated correctly, but are not being sent because the address “%%user\_full\_name%%” \<%%user\_email%%\> is correctly putting in the member’s name, but not the email address. We also have the email address embedded in the body of the confirmation email as well as the “To” field, and the substitution isn’t working there either.  
This is an urgent problem as membership renewals opened today for next year and we already have dozens of members who have renewed but not received a confirmation email

---

<div class="post-metadata">

**Author:** ![clavaque](https://forums.wpsharks.com/user_avatar/forums.wpsharks.com/clavaque/32/1792_2.png) [@clavaque](https://forums.wpsharks.com/u/clavaque)\
**Post date:** [November 7, 2026, 5:03am UTC](https://forums.wpsharks.com/t/user-email-replacement-code-no-longer-working-in-emails/13719/2 "2026-11-07T05:03:02Z")

</div>

Hi Helen. Thanks for reporting that. I’ll look into it and get back to you soon.

🙂

---

<div class="post-metadata">

**Author:** ![clavaque](https://forums.wpsharks.com/user_avatar/forums.wpsharks.com/clavaque/32/1792_2.png) [@clavaque](https://forums.wpsharks.com/u/clavaque)\
**Post date:** [November 10, 2026, 4:05am UTC](https://forums.wpsharks.com/t/user-email-replacement-code-no-longer-working-in-emails/13719/3 "2026-11-10T04:05:44Z")

</div>

Thank you for your patience.

I was finally able to reproduce the problem and found the cause. There was a bug in how s2Member prepared the %%user\_email%% and %%user\_login%% replacement values, which could leave the email address blank and prevent confirmation emails from being sent.

I’ve fixed it in the development version and verified the fix with an actual Stripe test checkout. The Modification Confirmation email was generated with the correct recipient, subject, and message body.

The fix will be included in the next release, coming shortly.

Thanks again for bringing this to my attention!

🙂

---

<div class="post-metadata">

**Author:** ![clavaque](https://forums.wpsharks.com/user_avatar/forums.wpsharks.com/clavaque/32/1792_2.png) [@clavaque](https://forums.wpsharks.com/u/clavaque)\
**Post date:** [November 10, 2026, 6:46am UTC](https://forums.wpsharks.com/t/user-email-replacement-code-no-longer-working-in-emails/13719/4 "2026-11-10T06:46:29Z")

</div>

> **[s2member v261110 Now Available | s2Member®](https://s2member.com/s2member-v261110-now-available/)**
>
> s2Member v261110 (Framework and Pro) was released on November 10th, 2026. (Framework) Improvement...

> (Framework) **Fix:** Corrected the %%user\_email%% and %%user\_login%% replacements in payment notification templates, which could leave member email addresses blank and prevent confirmation emails from being sent. Thanks to Hermione for reporting this. See [thread #13719](https://f.wpsharks.com/t/13719).

You can download it here:

[https://downloads.wordpress.org/plugin/s2member.261110.zip](https://downloads.wordpress.org/plugin/s2member.261110.zip)

🙂
