Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

Change WordPress “from” email address

Hi Friends today i m going to tell you a simple trick that is very useful, When ever we see a Email sent by our wordpress site it is normally sent by wordpress@yoursite.com . So todays trick will let you change the Email Address of your wordpress blog  to youremailid.com

i.e.

wordpress@yoursite.com to youremailid.com

wordpress@yoursite.com to youremailid.com

for me it will be

wordpress@best2know.info to riteshsanap@gmail.com

wordpress@best2know.info to riteshsanap@gmail.com

To Implement this you just have to Follow the Below Steps :

  1. First Login to your WordPress Blog
  2. Then Go to Appearance and in it for Editor
  3. In editor navigate to Functions.php
  4. In Functions.php add the below code :
    /*
    * Filter wp_mail's blog name and email address
    * default will show WordPress and WordPress@sitename.com
    * If you don't want default use these two functions
    */
    function res_fromemail($email) {
    $wpfrom = get_option( 'admin_email' );
    return $wpfrom;
    }
     
    function res_fromname($email){
    $wpfrom = get_option( 'blogname' );
    return $wpfrom;
    }
    add_filter('wp_mail_from', 'res_fromemail');
    add_filter('wp_mail_from_name', 'res_fromname');

    /* * Filter wp_mail's blog name and email address * default will show WordPress and WordPress@sitename.com * If you don't want default use these two functions */ function res_fromemail($email) { $wpfrom = get_option( 'admin_email' ); return $wpfrom; }function res_fromname($email){ $wpfrom = get_option( 'blogname' ); return $wpfrom; } add_filter('wp_mail_from', 'res_fromemail'); add_filter('wp_mail_from_name', 'res_fromname');

  5. Then Save it

Now we have implement the code successfully give it a test try and let me have the feedBack.

If you like it then do share it

Subscribe via Email

Share this:

  • Twitter
  • Facebook
  • Pocket
  • Print
  • WhatsApp
  • Email

Related

February 12, 2011 Ritesh Sanap WordPress Email, Email Address, wordpress

Comments

  1. Alex says

    January 22, 2013 at 3:14 am

    Thanks, it really helped me

    Reply

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation

Previous Previous post: Setting Up Code Blocks
Next Next post: How to Free Some Disk Space in Linux

Currently Trending

  • How to download Specific parts of YouTube videos
  • How to Make Your Own Avatar
  • You might also like this Widget for blogger or Related post widget
  • How to Delete Feedbacks from JetPack Contact Form
  • List Of All 255 Keyboard All Alt Key Codes
  • 100+ Best Online Games - Who Else Wants to Play ?
  • How to Change the Welcome/Login Screen in Windows XP ?
  • Windows Vista CD key
  • Add/Remove page/Post View Counter Widget For Blogger
  • h4x0r ( Hacker ) - Blogger Template

Get Latest post in your Inbox

Random Posts

Cleanr – Blogger Template

July 29, 2010 By Ritesh Sanap 15 Comments

How to Find Best web hosting according to your needs

July 26, 2010 By Ritesh Sanap Leave a Comment

Trick your webpage

March 12, 2008 By Ritesh Sanap Leave a Comment

How to change Blogger Template without deleting widgets ?

March 9, 2009 By Ritesh Sanap Leave a Comment

How to show Adsense in your Posts

February 27, 2011 By Ritesh Sanap 1 Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2023 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean