Today’s quick tip shows you how to programmatically change the outgoing WordPress email address to something other than “WordPress”.
By default WordPress will send outgoing emails to the “E-mail Address” set up in Settings > General in the format “WordPress <email@example.com>”.
Business website owners don’t want to receive emails from “WordPress” – it should be set to their website name.
There are two filters you can use to change the email address and the email name associated with the address.
Copy the following code into your theme’s functions.php file.
Lines 1-6 Change the default outgoing WordPress email address.
Line 2 Change firstname.lastname@example.org to your preferred email address.
Lines 8-13 Change the name associated with the outgoing WordPress email address.
Line 9 Change My Business Website to whatever name you want the email address to be associated with.