Change the default wordpress@ email address
Emails sent from WordPress, such as comment notifications, are sent from wordpress@. Find out how to change this.
By default WordPress emails, such as comment notifications, are sent from
WordPress <wordpress@yourdomain.com>
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โฆ
// Change default WordPress email address add_filter('wp_mail_from', 'new_mail_from'); add_filter('wp_mail_from_name', 'new_mail_from_name'); function new_mail_from($old) { return 'yourname@yourdomain.com'; } function new_mail_from_name($old) { return 'Your Name'; }
Obviously substituting ‘yourname@yourdomain.com’ and ‘Your Name’
36 replies on “Change the default wordpress@ email address”
Leave a Reply
-
HTML email signature in Apple Mail
Step by step guide on how to add an HTML signature to Apple Mail.
-
Secure your WordPress Blog
A guide to securing your WordPress website.
-
HTML email signature in Gmail
How to add a HTML signature in Gmail, without any text-decoration for links
-
Remove p tags from category description
By default Wordpress adds paragraph tags to category descriptions. Find out how to stop this.
-
DIV align bottom right (or left!)
Find out how to align a DIV to the bottom left or right.
-
Website Dimensions and Designing for the Web
What browser size should you design your website. Find out more.
-
Root Path and Configuration of your Website using php
Display the root path and configuration of your website by uploading a php file to your website.
-
HTML email signature in Zoho Mail
How to add a HTML signature in Zoho Mail. A very easy and stable solution.
-
FREE EU Cookie Law Script
If you haven’t already implemented the changes then we’ve put together a little bit of code to help you.
-
Remove the shadow from Mac Screen Grabs
How to remove the shadow from Apple Screengrabs.
-
10 Useful Sites for Web Developers
Some useful websites for web developers.
-
3 FREE Apps to protect your PC
A few free apps to help you protect your PC.
Thank you! It works.
I am adding this in, but it’s not working ๐ OceanWP Theme
Still works a treat. Is there anyway to make this work globally across all themes present on the server? Also will this need to be included after each update of the theme?
Hi. You would need to include the code in each of the theme’s function files. I build bespoke themes for each client so am unsure of the update process of themes you have. If you are using a child theme then you should be able to add your own functions.php file to that theme folder and that should remain as is when you update the main theme. Might be worth just testing that before updating lots of themes though.
Thank you for the reply. I will let you know the outcome when the theme requires updating. Hopefully the functions file remains the same to the sake of any modifications.
I am using 2 email addresses for my website! I don’t know how to change the address where I am getting contacted on a plugin called WPforms
anyone know that?
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.)
ok
lets try
Works great for me! And fairly easy to do!
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.
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
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.
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 enquiries@mywebsite.com and then I have to screw around editing the email to send to the customer
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?
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 enquiries@mywebsite.com it’s overiding all emails incoming and outgoing
Do you know the page in the backend (that tells it to be “wordpress” I can change things via cpanel or FTP
this plugin https://wordpress.org/plugins/personal-email/ is the solution just upload and activate it takes the email address from the settings page and uses that to send BUT does not change the email from the webforms- woohooo this is WORKING you have no idea how long this took to find- while testing out all the other ones back and forth emails to the help desk but it works
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.
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
Yep worked like a dream! thanks!!
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 wordpress@mydomain.com –> I just want to change the ‘Your Name’ so it doesn’t pop up as “WordPress” in my inbox.
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.
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 ‘wordpress@mydomain.com’ –> 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 wordpress@mydomain.com but change the “your name?”
If you only want to change the name then remove lines 2 and 5-7 from the code above.
Worked like a charm. Thanks for all your help!!!
Great stuff. Glad I could help ๐
Many thanks man, you are the best.
It works very fine.
Cheers!
It works. Thanks!
You can use https://wordpress.org/plugins/wp-change-default-from-email/ update from name and from email easily
Yes, you certainly can use that but as this is a simple function, there’s no need to add another plugin to your site.
This works like a dream. Awesome! thank you so much..
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 wordpress@mysite.com and not to user’s mail.
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.
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