Changing Sending Email
-
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 'MYCOMPANYNAME@MYCOMPANY.CO>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.
Thanks
D
The topic ‘Changing Sending Email’ is closed to new replies.