How to change default WordPress “FROM” email

If you haven’t already changed the way WordPress sends system emails, you will notice that all sent emails have standardized address. If you have changed the password, received a new comment or created a new password for your newly registered users, for example, a mail will be sent from user “WordPress” with wordpress@yourdomain.com email address.

While there’s nothing bad about this, you might want to personalize the email system.

Instead of having a standard name and address which may get confusing for someone handling several blogs, you can make those automatic emails more personal and let your users know what they are dealing with.

That will require some 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:
  3. function new_mail_from($old) {
    return 'no-reply@firstsiteguide.com';
    }
    function new_mail_from_name($old) {
    return 'Your Name Here';
    }
    add_filter('wp_mail_from', 'new_mail_from');
    add_filter('wp_mail_from_name', 'new_mail_from_name');
  4. Change details:
  5. email address at line #2: return ‘no-reply@firstsiteguide.com’;
    name at line #5: return ‘Your Name Here’;

That’s actually all you have to do. After you have saved changes, all system emails will be sent from the newly specified address while the name of email sender will be the one you have set up in the second function. Now you’re a step closer to completely personalized WordPress website.

Hey, if you don’t like adding the code by yourself, you can make the same changes with a simple plugin. With WP Change Default Email, all you have to do is enter your email and desired name and you’re done in a jiffy.

 

START YOUR OWN BLOG

This guide is an introduction to mastering the art of blogging. It provides easy to follow steps to start, maintain, and grow your blog.

Read the guide

Leave a Reply

Your email address will not be published. Required fields are marked *