• Resolved Clea

    (@clearoz)


    Hi !

    First of, thanks for the great plugin !
    I am mostly using the social login feature and loving it so far.
    I do have an issue with the automated emails upon user registration, and would very much appreciate your help :
    – I would like to modify the text of the welcome email from the boring email ‘and password change’ default email to something much more personalized. Is there a way you can help me change it ?
    – For some reason, as admin, I do not receive any message when a new user registers.

    For clarification :
    “Send post-registration email to user to set account password” is activated.
    “Send new user registration notification email to admin” is activated.

    Looking forward to your reply !

    Kind regards,
    Clea

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi Clea,

    You can use any plugin that helps you customize the content of the welcome email. Plugin uses the default template of the welcome email.
    If you are not receiving the email, try keeping only this plugin active for a while just to check if this makes any difference. If it does, you can activate other plugins one-by-one to check which is the one causing this. Once you find out the plugin causing this, we can work on the solution.

    Thread Starter Clea

    (@clearoz)

    Hi,

    Thanks for the reply !

    Just to let you know, I have been able to edit the registration email using code found there (I prefer not to add another plugin if I can find a simple code to add to functions.php) :
    https://wordpress.org/support/topic/customizing-email-function/

    Here it is :

    add_filter( 'wp_new_user_notification_email', 'edit_user_notification_email', 10, 3 );
    function edit_user_notification_email( $wp_new_user_notification_email, $user, $blogname ){
    	
    
    	$new_subject_txt = __( 'Information about username and password');
    	$new_msg_txt = __( 'Hello and welcome to Our website!'). "\r\n";
    	$new_msg_txt .=__( 'You have been assigned an education on our e-learning platform.'). "\r\n\r\n";
    	$new_msg_txt .= sprintf(__('Your username is: %s'),  $user->user_email ) . "\r\n";
    	$key = get_password_reset_key( $user );
    		if ( is_wp_error( $key ) ) {
    			return;
    		}
     	$new_msg_txt .= __( 'To set your password, visit the following address:' ) . "\r\n";
        $new_msg_txt .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' ) . "\r\n\r\n";
    	$new_msg_txt .= __( 'For questions or problems with entering a password, contact our support.');
    	$wp_new_user_notification_email['subject'] = $new_subject_txt;
    	$wp_new_user_notification_email['message'] = $new_msg_txt;
    	return $wp_new_user_notification_email;
    }

    Kind regards,

    Clea

    • This reply was modified 1 year, 11 months ago by Clea.
    Plugin Author Heateor Support

    (@heateor)

    You can add custom code in the functions.php file but it will vanish next time you will update the theme unless you are adding code in the child theme.

    Thread Starter Clea

    (@clearoz)

    Thanks for the tip ! I am using a child theme so it should be fine 🙂

    Kind regards,

    Clea

    Plugin Author Heateor Support

    (@heateor)

    Okay. No problem 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘New user registration welcome email’ is closed to new replies.