By default, WordPress sends notification emails from WordPress <[email protected]>.
To change this to something nicer, just add few lines of code on your theme’s functions.php file:
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 ‘Yourdomain’;
}
Clearly, remember to change [email protected] and Yourdomain.
Leave a Reply