How to Change the default wordpress@ email address

How to Change the default wordpress@ email address
25 Jan
How to Change the default wordpress@ email address By Sudhir Kumar /

How to change the default WordPress email.



changes in the functions.php file where you need to specify new FROM name and address:

1- Open functions.php file

2- Copy and paste the following lines:

// Change default WordPress email address

add_filter('wp_mail_from', 'new_mail_from');

add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {

return 'yourname@yourdomain.com';

}

function new_mail_from_name($old) {

return 'Your Name';

}

Replace ‘yourname@yourdomain.com’ and ‘Your Name’ with your information.

Comments

Recognition of Excellence