How to change WordPress default FROM email address

October 5, 2011 at 2:35 pm

WordPress is a very flexible blogging platform, but by default, you can’t modify the FROM email adress. If you want to be able to easily change it, just read the recipe I have for you today.

Simply paste the following snippet into your functions.php file. Don’t forget to put the desired email adress on line 5 and desired name on line 8.

add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {
 return '';
function new_mail_from_name($old) {
 return 'Your Blog Name';

Credits: Rainy Day Media.