• Resolved doublestorm

    (@doublestorm)


    After a user registers, an activation email is sent to them to activate their account. Where can I change both the content of this email as well as the displayed “Sender” of the email – it currently shows that the email is from “WordPress”

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Thank you for reaching out to us.

    In order to change the content and the subject of the Email Confirmation Email sent to the user you will need to use some custom code:

    1. Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db

    2.Add the following code to the end of it:

    /*
     * Change the Subject of the Email Confirmation Email sent to user
     */
    
    add_filter ( 'wppb_signup_user_notification_email_subject', 'wppbc_custom_email_confirmation_subject', 20, 8 );
    function wppbc_custom_email_confirmation_subject($subject, $user_email, $user, $activation_key, $registration_page_url, $meta, $from_name, $context ){
        // $default_message = sprintf( __( '[%1$s] Activate %2$s', 'profile-builder'), $from_name, $user );
        $new_message = sprintf( __( '[%1$s] Activate your account', 'profile-builder'), $from_name);
        return $new_message;
    }
    
    /*
     * Change the Content of the Email Confirmation Email sent to user
     */
    
    add_filter ( 'wppb_signup_user_notification_email_content', 'wppbc_custom_email_confirmation2', 20, 8 );
    function wppbc_custom_email_confirmation2 ($message, $user_email, $user, $activation_key, $registration_page_url, $meta, $from_name, $context ){
        $new_message = sprintf( __( "Custom Text. To activate your user, please click the following link:\n\n%s%s%s\n\n.", "profilebuilder" ), '<a href="'.$registration_page_url.'">', $registration_page_url, '</a>.' );
        return $new_message;
    }

    3. Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality

    The From (name) is set based on your Site Tile and Admin Email Address set in Settings -> General.

    Best regards,

    Teodor, my suggestion would be to incorporate this function into the mail plugin as a default, and allow the webmaster to specify the From Name and SUbject of email as a setting.

    Hi,

    I will forward your suggestion to the dev team. They will decide if an UI will be added inside Profile Builder in order to let the Admin change the default Subject and Content.

    Have a great day.

    Best regards,

    I am having the same issue which is currently the only issue i have with the plugin.

    how can user request to send activation link again after registration if not received

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Activation Email’ is closed to new replies.