Bluehost Web Hosting Help
Scripted E-mails appear to come from username@box###.BlueHost.com
Why do scripted e-mails come from < username@box###.BlueHost.com > when I have specified otherwise?
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.
You must change the script you are using to correctly use a valid From: header.
Examples of headers that should work would be:From: firstname.lastname@example.org will work From: "user" <email@example.com>Examples of headers that will NOT work:From: "firstname.lastname@example.org" From: user @ domain.com From: email@example.com <firstname.lastname@example.org>
Our servers will not accept the name for the email address and the email address to be the same. It will not accept a double declaration of the email address.If you do not want to edit your PHP based scripts, you can modify the sendmail_path line located in your php.ini. You would want to modify it like this:
sendmail_path = /usr/sbin/sendmail -t -i -email@example.com'
The part that you will be adding is: -firstname.lastname@example.org'
This method works because the php mail function calls sendmail (a program on the server) directly using the path defined in your php.ini. Placing the -f flag here allows us to work directly with sendmail without PHP getting in the way. Passing a "From" header to the php mail function will override the -f flag set in your php.ini.
Note: The email address you use must be a valid created account in the cPanel.
Recommended Help Content
Displaying Email Headers
How do I display the Internet email header? (updated 415 days ago)
Replacing Forms and Hit Counters That Use FrontPage Extensions
With support for FrontPage extensions now gone you may want to find alternatives to email forms and the counters that are native to front page. This article explains some ways to replace the forms and hit counters. (updated 18 days ago)
How do I redirect users to another page using PHP? (updated 1690 days ago)
Related Help Content
Failed sending email from phpBB2
The most common cause is that you are either sending to or sending from an invalid email address. You will want to create a new email address, and change your profile to use a different Email address. (updated 2059 days ago)
Email spoofing is when someone modifies the email header's "From:" line to be whatever they would like. (updated 1248 days ago)
Perl script is executed and virtual return is blank
We need to execute a Perl script from inside a PHP page and display the results as part of the page. We tried the 'virtual' command but the server returns: blank. (updated 2054 days ago)
Mail List authentication failures (php/phplist)
I'm trying to configure an application (phpList) and it requires that I enter (in config.php) a username and password for a POP3 account to handle bounces. I keep getting a POP3 error and it can't log (updated 2066 days ago)
Specify a Cron Job to use a Specific php.ini File
Script executed with a cron job requires a specific php.ini file to be used. (updated 839 days ago)
Understanding Email Headers
Understanding Internet email headers. (updated 415 days ago)
Changing Username on Account
Can I change my username after registration? (updated 2041 days ago)
Formmail will not send from the submitted email address
Formmail from Matt's Script Archive will not send from an email address other than my main Bluehost account. (updated 1726 days ago)