I’ve written many articles here regarding Bluehost. Like how to start a WordPress blog in Bluehost in 5 minutes. In this post, lets have a look at one common issue faced by bluehost users. Bluehost does have some policies regarding the from email header. If you doesn’t put your from email address properly, you will be receiving emails from bluehost with the from email address as username@box###.bluehost.com
Why does this issue happen?
The issue is that Bluehost check for your from email address and it will override it with your bluehost server email if it is not valid .
Here are some kind of invalid from email addresses,
- yourname@gmail.com – Invalid , Bluehost needs your email hosted at your own domain
What is a valid from email address from bluehost perspective
yourname@yourdomain.com
This is a valid email address ,but make sure that you have added this email into your bluehost email accounts, or else it will be overrode again.
Bluehost also doesn’t accept name for the email address and the email address to be the same.
How to add a new email to your bluehost account.
According to bluehost,
This is because our servers require you (or your script) to use a properly formatted, valid From: field in the email’s header. If the From: field is not formatted correctly, empty or the email address does not exist in the cPanel, the From: address will be changed to username@box###.bluehost.com.
Step 1
Log into your bluehost account and take the mail section.
Step 2
Add a new email address to your host in the email section.
How to change your from email address in WordPress?
Code Method
Put this code in your functions.php
add_filter( 'wp_mail_from', 'change_wp_fromemail'); function change_wp_fromemail( $email ) { return "youremail@yourdomain.com"; } add_filter( 'wp_mail_from_name', 'change_wp_fromname' ); function change_wp_fromname( $name ) { return "Your Name"; }
The above code has been taken from CodesCafe regarding changing WordPress mail headers.
change the return values with your valid email address and name and you are done
Plugin Method.
If you want to use a plugin, use the WP From Mail Plugin II , configure your from name and email address over there.