Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress Changing Sending Email

Discussion in 'Misc WordPress Requests' started by GJS, Jan 25, 2018.

  1. GJS


    Changing Sending Email, by GJS

    Good evening

    I have changed the default email going out to new users when they register etc in my functions.php file using:
    // Function to change email address
    function wpb_sender_email( $original_email_address ) {
    return ‘[email protected]>UK’;
    // Function to change sender name
    function wpb_sender_name( $original_email_from ) {
    return ‘MYCOMPANYNAME’;
    // Hooking up our functions to WordPress filters
    add_filter( ‘wp_mail_from’, ‘wpb_sender_email’ );
    add_filter( ‘wp_mail_from_name’, ‘wpb_sender_name’ );

    That works great. The problem I am having is one of the plugins we use has set a default email address to come from candidates when they register for a job and get sent to the employer. So they all need to be unique. This works when my default email is coming from ‘WordPress’. However it does not work when I change my default email address. This seems to obviously overwrite any other sending email addresses.

    I do not want my emails going out to clients coming from WordPress. It seems crazy this cannot be set to whatever you want in your dashboard. So how can I change it to come from my company without it overriding any other plugins on the site who need to have their own email addresses to send from etc?

    I have tried a couple of plugins with the same result.


    Changing Sending Email

Share This Page

Monarch Social Sharing Plugin