• I wonder if anyone can help me with sending WordPress email notifications from a different email address (from a domain I own).

    Because of the email filtering that has been set up in my organisation all the emails that get sent from my WordPress site get filtered before they can be delivered.

    I was able to use the following code in my theme functions.php on a previous website but this doesn’t seem to work my WP 5.5 website don’t know if something has changed.

    // Function to change email address
     
    function wpb_sender_email( $original_email_address ) {
        return '[email protected]';
    }
     
    // Function to change sender name
    function wpb_sender_name( $original_email_from ) {
        return 'Tim Smith';
    }
     
    // Hooking up our functions to WordPress filters 
    add_filter( 'wp_mail_from', 'wpb_sender_email' );
    add_filter( 'wp_mail_from_name', 'wpb_sender_name' );

    Any help would be appreciated.

    Thank

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Change Sender Name and Email Address WordPress’ is closed to new replies.