How to change WordPress default FROM email address

How to change WordPress default FROM email address

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 '[email protected]';
}
function new_mail_from_name($old) {
 return 'Your Blog Name';
}

If you enjoyed this article, please consider sharing it!

0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*