WordPress usually uses the from name “WordPress” and address “[email protected]” by default when it sends notifications to users. For example new users or comments on your posts.

On one of my wordpress blogs it actually used [email protected] which is kinda weird too. Let’s make this custom to your website! Just requires pasting in some code into 1 file.

This is working as a WordPress version 2.9.2

All you need to do is put this in your themes functions.php file before the ending ?>

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 'Blog or Website Name';
}

Save it and your done! Yes it’s that easy.