• Resolved Arinze Ifeanyi

    (@arinzeifeanyi)


    This plugin is good and very easy to set up. I personally like it and am using it in all my sites..

    Please the only thing i want to know is how can i change the [email protected] emaill address and name used to send activation message to newly registered users?

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

    In order to change the From Email 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:

    /*
     * Filters to change the From Name and From Email when Email Confirmation is set
     */
    
    // Change the From Name
    
    function wppbc_change_email_from_name( $from_name ){
        return 'Website'; // new email name from sender.
    }
    
    add_filter( 'wp_mail_from_name', 'wppbc_change_email_from_name' );
    
    // Change the From Email
    
    function wppbc_change_email_from_email ($from_email ){
        return '[email protected]'; // new email address from sender.
    }
    add_filter( 'wp_mail_from', 'wppbc_change_email_from_email' );

    3. Replace “Website” and “[email protected]” with your own name and email

    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

    Let me know if it works.

    Best regards,

    Thread Starter Arinze Ifeanyi

    (@arinzeifeanyi)

    Good though i havent tested it.

    Dont you think that including it in your plugin file will be better. Even if it required editing it directly in the plugin php or providing an interface in the admin dashboard.

    The plugin is a good one though apart from that.

    Hi Arinze,

    Please test the custom code and let me know if it works.

    For the moment we will not include the custom code inside the core of Profile Builder Free version. In the Pro version you can change the From Name and From Email via an interface: User Email Customizer / Admin Email Customizer.

    Thank you for your kind words. You can leave us a review here.

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change [email protected] sender name and email’ is closed to new replies.