Change email text
-
Hey guys
Im trying to find where this email comes from & how to edit it
https://ibb.co/8NWJQqMIts when someone registers they get that email straight away
john
-
Hi @johnegg,
Thank you for writing in,
Please check this documentation link https://docs.wpeverest.com/user-registration/docs/customize-email-content/ and follow the instruction kindly to edit the email content.
Regards!
Thanks, Amrit but that particular emails isnt there at all. https://ibb.co/8NWJQqM
Hi @johnegg,
Thank you for writing back,
Did you check the “Successfully Registered Email”? If you open the email setting, you will find the successful message with some smart tag that automatically pulls your site URL, etc., data. For more clarification, please check this screenshot https://prnt.sc/26ih7ko.
Could you please change the “Successfully Registered Email” content and register new users. If you cannot find the changes, please do let us know.
Regards!
Hi Amrit
I actually disabled that email as there were two emails coming through. So registraions are set to autmomatic, once the user registers that email is sent to them but I cant see where to edit it https://ibb.co/8NWJQqM
its not the same email thast set here https://prnt.sc/26ih7ko.
John
Hi @johnegg,
Could you please let us know which user login option you have enabled from your form individual settings? And also, please enable the email the successful register email once and check your successful email by registering a new user.
Suppose enabling the successful register email feature does not help you replace the current successful registration email. Please also provide us with your site registration page link. We will look into it once and provide you with the appropriate solution.
Regards
Thanks im using the “auto login after reg” option. Ill try enabling the email again but I think it just sends two emails then
Ok what happens is:
I register & I get the “Please confirm your registration..” email which has a link I need to click.
Then after I click that IM registered but I get the seconds email then https://ibb.co/8NWJQqM
Hi @johnegg,
If you would like to send the successfully registered email after email confirmation, then please add the following code on your theme’s functions.php file, or you can use the code snippet plugin (This plugin will help you secure the site while adding programming codes as well as makes your customization code safe from updates).
add_action( 'user_registration_check_token_complete', 'send_successfully_registered_email', 10, 2 ); function send_successfully_registered_email( $user_id, $user_reg_successful ) { if ( $user_reg_successful ) { $user_data = get_userdata( $user_id ); $username = $user_data->user_login; $blog_info = get_bloginfo(); $home_url = get_home_url(); $sender_name = get_option( 'user_registration_email_from_name', esc_attr( get_bloginfo( 'name', 'display' ) ) ); $sender_email = get_option( 'user_registration_email_from_address', get_option( 'admin_email' ) ); $header = 'From: ' . $sender_name . ' <' . $sender_email . ">\r\n"; $header .= 'Reply-To: ' . $sender_email . "\r\n"; $header .= "Content-Type: text/html; charset=UTF-8\r\n"; $subject = get_option( 'user_registration_successfully_registered_email_subject', sprintf( __( 'Congratulations! Registration Complete on %1$s', 'user-registration' ), get_bloginfo() ) ); $message = apply_filters( 'user_registration_get_successfully_registered_email', sprintf( __( 'Hi %1$s, <br/> You have successfully completed user registration on <a href="%2$s">%3$s</a>. <br/> Please visit \'<b>My Account</b>\' page to edit your account details and create your user profile on <a href="%2$s">%3$s</a>. <br/> Thank You!', 'user-registration' ), $username, $home_url, $blog_info ) ); if ( 'yes' === get_option( 'user_registration_enable_successfully_registered_email', 'yes' ) ) { wp_mail( $user_data->user_email, $subject, $message, $header ); } } }You can edit the email message from line number 18 to 21, but please do not change or replace %1$s, %2$s. It will dynamically pull the user information like user name, user registration form link, etc.
Regards!
Ok thanks, how do i disable this email? https://ibb.co/8NWJQqM is that a core WordPress email or associated with your plugin?
Hi @johnegg,
As per as current version of the plugin, the user registration plugin does not have a feature to send the email after the confirmation email login method so we have provided a code snippet to add this feature on your site.
The email seems to be sent from your other third-party plugin. You can deactivate all the third-party plugins one by one and check the user registration confirmation simultaneously. You will find the plugin that sends the successful registration email.
Regards!
Great thanks
Hi Amrit,
Thanks for your help on this, all sorted now. I foudn teh code in my fnctions file that was sending that other email!
Just one final thig, ho wdo i use a custom user filed in the email instead of uswername?
For example you have:
“Hi %1$s, <br/>
You have successfully comp…”Which echos their username.
But I want to use a custom field in the registration form called “school_name” instead of their username?
So it will say:
“Hi Parkway Highyway School,
You have successfully comp…”Cheers
John
The topic ‘Change email text’ is closed to new replies.