Skip Navigation

[Resolved] eMail notification incorrect

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to include the User's first name, last name, email, and user ID in an email notification sent by a New User CRED form.

Solution:
Use the following syntax in your email notification body:

User ID: %%USER_USERID%%

eMail: %%USER_EMAIL%%

Name: [wpv-user field="user_firstname" id="%%USER_USERID%%"] [wpv-user field="user_lastname" id="%%USER_USERID%%"]

[/php]

Relevant Documentation: https://toolset.com/documentation/user-guides/cred-user-forms-email-notifications/

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by jillT 6 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#625919

hidden link

I have created a user form, which is working.

On this I have set up an email notification. When I click send a test email the email arrives and the content is correct. However, when I test the user form by creating a new account, the email notification I receive does not have the correct content; instead it shows the content of an appearingly random post from my events plugin (custom post type).

I have the following for the notification email body:

A new user has registered a member account at The Papillon (Butterfly Dog) Club's website.

User ID: [wpv-user field="ID"]
eMail: [wpv-user field="user_email"]
Name: [wpv-user field="user_firstname"] [wpv-user field="user_lastname"]

#625979

Hi, can you try the following troubleshooting steps first?
- Temporarily deactivate the events plugin. Does the form send the correct information now? If not, continue.
- Temporarily activate a default theme like Twenty Seventeen and deactivate all plugins except Types, Views, CRED, CRED Commerce, and WooCommerce. Test again.
- If the problem is resolved, please reactivate your theme and plugins one by one until the conflict is revealed

Please let me know what you find out.

#626376

Hi.
I deactivated Events plugin and received the email with just the hard content, not the data.
I changed to default theme and deactivated plugins except toolset and woocommerce and again received email with just the hard content.
I reactivated all plugins and theme and received email with hard content, even with Events plugin activated.

I gave the notification email body I have in my original post. I thought it was correct but the fields are not completing.

#626679

Okay please try this code:

<p>User ID: %%USER_USERID%%</p>
<p>eMail: %%USER_EMAIL%%</p>
<p>Name: [wpv-user field="user_firstname" id="%%USER_USERID%%"] [wpv-user field="user_lastname" id="%%USER_USERID%%"]</p>

CRED User form notifications are a bit tricky, so it's best to use this document as a reference:
https://toolset.com/documentation/user-guides/cred-user-forms-email-notifications/

#626860

Thank you Christian. That seems to have done the trick.