Written by me@grafxflow
22 Mar, 2013
0
3,619
You will notice that when you activate the register/login option in WordPress that all the emails that it generates, such as Forgotten Password, Register have the following email address WordPress@your_website.com as the sender. Not the best of ideas especially if you have a shop to run. So here is the solution without using a plugin.
1. In admin goto Appearance->Editor.
2. Then choose Theme Functions (functions.php) from the templates listing on the right.
3. Now add the following code at the bottom, remembering to change to your replacement email.
//notification mail email change
add_filter('wp_mail_from','custom_email_from');
function custom_email_from($mail) {
$mail = 'replacement_email@your_website.com'; // Replace the email address here //
return $mail;
}
//notification name change; optional
add_filter('wp_mail_from_name','custom_email_from_name');
function custom_email_from_name($name) {
$name = get_bloginfo('wpurl');//or put your own text here
return $name;
}
30 Apr, 2017
05 Sep, 2012
03 Sep, 2013
I am a Full-stack Developer who also started delving into the world of UX/UI Design a few years back. I blog and tweet to hopefully share a little bit of knowledge that can help others around the web. Thanks for stopping by!
Follow11 Jul, 2023
21 Jun, 2023
Views: 166,096
Views: 40,208
Views: 36,920
Views: 33,515