Wordpress Sender Email incorrect on HostMonster
On recently changing my webhost to ‘HostMonster’, I found that my blog, powered by Wordpress, doesnt send out the email the way I want it to.
Devesh had subscribed to one of my posts, and he received an email from me with the ID username@host#.hostmonster.com, when ideally it should have been sent by my email id.
The hostmonster forums have already discussed this problem, and the solution they mention on the website is
This is because our servers require you (or your script) to use a properly formatted, valid From: header in your email. If the From: header is not formatted correctly, empty or invalid our system will change the from address to be
@ .hostmonster.com. To stop this, you must change the script you are using to correctly use a valid From header.
Examples of headers that should work would be:
From: user@domain.com
From:
From: “name”
Examples of headers that will NOT work:
From: “user@domain.com”
From: user @ domain.com