Why you have to change the default from name and from email address on your wordpress blog?

Consider you don’t change default from name and from email address, Your blog user forgot his password and he tries to reset the password using lost password page. This is what he gets in the forget password email,

default from name:** WordPress **

default from email address: [email protected]


Its a bit of odd isn’t? Do you have any email address created as [email protected]? or Is this email [email protected] really exists?

Well, we can change up these names and email address easily using the following snippet. Simply add this code on your themes functions.php Don’t forget to change the name and email address in this snippet.

add_filter( 'wp_mail_from', 'wp4_new_mail_from' );     
function wp4_new_mail_from( $old ) {
    return '[email protected]'; // Edit it with your official email address

add_filter('wp_mail_from_name', 'wp4_new_mail_from_name');
function wp4_new_mail_from_name( $old ) {
    return 'Webmaster'; // Edit it with your official name

Happy blogging!!!