PDA

View Full Version : 'From Address' in email


mafeldman
03-04-2006, 05:23 PM
I'm sending email out from a php script and the system ignores my from adderss and substitutes 'accountname@boxnn.bluehost.com' Is there any way to get this working? Most of the recipients will probably think it is spam and delete it immediately.

-Mike

ocmnet
03-06-2006, 04:04 PM
I have had the same problem. I had to script it like this:

mail($emailTo, "TEST", $msg, 'From: "Tim B" <admin@mysite.com>');

Make sure to leave a space before the <

mafeldman
03-06-2006, 07:02 PM
Thanks - it's working.

Dan Pritchard
03-27-2006, 05:28 PM
*bump*

I'm having the same issue...The script I'm using is a perl script. How do I get it to display something else? (I can post source code if necessary).

Also-- messages sent by WordPress have the same thing happen to them. Looks ugly.

I'm sending email out from a php script and the system ignores my from adderss and substitutes 'accountname@boxnn.bluehost.com' Is there any way to get this working? Most of the recipients will probably think it is spam and delete it immediately.

-Mike

atomicnuke
03-27-2006, 05:33 PM
I could be wrong, but don't you have to actually have the from address be to an actual email address? So if it is register@yoursite.com then you need to make sure that address is created in the mail part of Cpanel. If that isn't the problem sorry.

Dan Pritchard
03-27-2006, 06:07 PM
I could be wrong, but don't you have to actually have the from address be to an actual email address? So if it is register@yoursite.com then you need to make sure that address is created in the mail part of Cpanel. If that isn't the problem sorry.

Interesting idea. I've never heard that. Is an alias all right? Or does it have to have an actual mail account?

I only use a couple of actual accounts and set up forwarders for most of my addresses.

Also, the main problem I'm having is on my contact form script (not bluehost's, that one's lame and uses your email address in cleartext)... the script puts the sender's address in the from field...and of course the user won't be an account on my server at all...