WordPress Icon Logo
me@grafxflow

Written by me@grafxflow

22 Mar, 2013

0

3,647

Replace WordPress@ as sender on emails

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;
}

Add comment

Smart Search

133 Following
50 Followers

me@grafxflow

Hull, United Kingdom

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!

Follow