Change WordPress default mail sender

advertisement

While installing a new WordPress blog it creates a default email address (wordpress@yourblogname.com) and from name (WordPress). So receivers from your blog will get email from wordpress@yourblogname.com with WordPress as name. To keep it professional, it is highly recommend to change it to your own blog email address and name. Follow the instructions below to change default name and email address.

Option 1

Step 1

Open functions.php which is located inside your theme folder.

Step 2

Copy and paste the following code into functions.php.

add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {
 return 'admin@yourblogname.com';
}
function new_mail_from_name($old) {
 return 'Blog Name';
}

That’s it, your blog should be sending email to users or readers using the name and address indicated on the code above.

Option 2

If you are not code savvy person and don’t want to mess around with PHP file and edit it. I will suggest you next option, which is to use a plugin called Mail From. Mail From is a WordPress plugin that allows you to achieve the same result. Install the plugin change desired name and email address in the plugins option page.

Change WordPress default mail sender

About the Author:

Web designer/developer holding Masters degree in IT, currently living in Australia. Passionate about Wordpress, PHP, Fireworks and Jquery.
  • http://www.couponspicy.com alanc230

    This information was clearly written and easy to follow. Thanks for your help.

  • http://zirta.net Zirta

    Thank you very much, I was looking for this info! :-)

    • http://www.webanddesigners.com WAD

      Glad to know this article helped you.

  • http://www.heptasarim.com/ Kurumsal seo

    That’s all. You and WP are great to me.

  • http://www.madeinara.net/artikel/jasa-toko-online-bandung Jasa Toko Online

    The post is very nicely written and it contains many useful facts. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement. Thanks for sharing with us.

  • Digit Embroidery

    What a great article, i just loved it and i loved to read it. Excellent thought author,i have bookmarked it.
    Custom Embroidery

  • John S.

    You can also use this plugin which contain same code as you specified above https://wordpress.org/plugins/wp-change-default-from-email/