How do I change notification emails address from WordPress @mydomain.net to something else.
I want to do this because WordPress @mydomain.net ends up getting flagged as junk mail.
Thanks
Daniel
How do I change notification emails address from WordPress @mydomain.net to something else.
I want to do this because WordPress @mydomain.net ends up getting flagged as junk mail.
Thanks
Daniel
You must be logged in to post a comment.
I use a very similar approach like John P Bloch and Bainternet, just a little bit more flexible, so I donât have to change the mail address for any client:
There’s a great plugin that does this for you called Send From. However, if you want to roll this yourself, it’s dead simple. To change the email address add a filter on
'wp_mail_from'
like so:And you can also change the sender’s name using the
'wp_mail_from_name'
filter like so (this is entirely optional):Just swap the fake values for your real email address and you’re good to go.
here:
Change Name to the name you want and email@Domain.com to the email address you want.
but if you change the email address most anti span filter will block or spam your mail for spoofing.
The existing answers are a better way to do this, however there is an alternative I’d like to mention.
This happens after the *wp_mail_from* and *wp_mail_from_name* filters. So with this you can force a change and prevent other plugins from modifying it. You can also work directly with the phpmailer object and do things such as adding a reply to address (shown above)