Change the default wordpress@ email address

By default WordPress emails, such as comment notifications, are sent from

WordPress <>

Not entirely sure why WordPress doesn’t have a built-in option to change this but if you want to change it simply add this to your functions.php file…

Obviously substituting ‘’ and ‘Your Name’

  • This is really good.
    But this is always the same mail , what if I have to get the user’s email that has compiled the form?
    How should I do?

    • The Problem is when I click the Gmail or Aruba’s reply button.
      This will mail me to and not to user’s mail.

      • daretothink

        Hi Mattia. I’m not really sure exactly what you are attempting to do? The above function is really only to change the official wordpress@ email address and nothing else.

        • David Welsman

          when someone makes an enquiry via my webform- that enquiry comes to me with the from email as the one I set in functions.php- so when I click reply I am replying to myself what is supposed to happen is when I receive an enquiry via the web form I can click reply and it is the customers email that I am sending to

  • Theticus

    This works like a dream. Awesome! thank you so much..

  • John S.

    You can use update from name and from email easily

    • daretothink

      Yes, you certainly can use that but as this is a simple function, there’s no need to add another plugin to your site.

  • Josue

    It works. Thanks!

  • jobs4adams

    Many thanks man, you are the best.
    It works very fine.

  • Penelope

    I am going to use this on my website. I noticed this site has not been updated since 2014. Just double checking this still works smoothly before I place code in my functions.php — and I agree, I can’t stand using plugins. The less plugins the better! Also, where do I place this code in my functions.php ?

    I don’t mind the –> I just want to change the ‘Your Name’ so it doesn’t pop up as “WordPress” in my inbox.

    • daretothink

      Hi. The site was updated last week but yes, you’re correct this article was written back in 2014. The code should still work fine, however. Just add the code to the bottom of your functions.php file. If the functions.php has a closing end tag then make sure you place it before that.

      • Penelope

        Wow thank you for the quick response! I will make those adjustments. I made an edit and didn’t see your response.

        I don’t mind the ‘’ –> I just want to change the ‘Your Name’ so it doesn’t pop up as “WordPress” in my inbox. Will it be a problem if i leave the but change the “your name?”

        • daretothink

          If you only want to change the name then remove lines 2 and 5-7 from the code above.

          • Penelope

            Worked like a charm. Thanks for all your help!!!

          • daretothink

            Great stuff. Glad I could help 🙂

  • Yep worked like a dream! thanks!!

  • David Welsman

    The problem with this is I have an enquiry form on the site that when the customer fills out it sends an email to the Helpdesk- and it changes the from email to the one I changed- that functions code changes incoming and outgoing- I need to change it from within the backend of wordpress

    • daretothink

      Are you using a plugin or anything for the contact form on your site? I use Contact Form 7 for the form on this site where you can then change the from and reply-to fields to whatever you require.

      • David Welsman

        contact form 7 does not work on the site, I use a plugin called contact bank and the functions.php way or the plugin overides any settings in the plugin- when the functions code is removed (or the plugin turned off) emails come into the helpdesk and I can click reply and it replies to the customer email- but they recieve the email with wordpress@ when the plugin is on or the code inserted emails via the form become and then I have to screw around editing the email to send to the customer

        • daretothink

          Umm, the thing with the above method is it’s only really for the standard WP emails that get sent and not those from a third-party plugin. I’d be very surprised if there’s not an option in the plugin to change the “From” field?

          • David Welsman

            there is an option in the contact bank plugin to make the emails coming in the customers email- BUT the 2 methods mentioned above override this to it’s overiding all emails incoming and outgoing

          • David Welsman

            Do you know the page in the backend (that tells it to be “wordpress” I can change things via cpanel or FTP

          • daretothink

            I can’t remember where the wordpress@ email address is situated but it’s in the WP core files which you should not alter. The function does that without the need to change the core.

      • David Welsman

        I am currently editing pluggable.php however even here I change the word wordpress to enquiries and there is no change at all- it’s fricken annoying damed if I do damed if I don’t

  • Denie

    Many thanks for this! I run a magazine site, and we automatically send notifications when an author’s article is published. Now, we can send it from a different address than “wordpress@”. Perfect.

  • Anton van Elburg

    Works great for me! And fairly easy to do!

  • Adil ibrar

    lets try

  • sam


  • Admin

    Still works fine! In 2018 – tested!
    (sorry for the name used – Admin – I am not an admin for this site – just doing something using this name on my own website and the name was by default.)