'From Address' in email
I'm sending email out from a php script and the system ignores my from adderss and substitutes 'email@example.com' Is there any way to get this working? Most of the recipients will probably think it is spam and delete it immediately.
I have had the same problem. I had to script it like this:
mail($emailTo, "TEST", $msg, 'From: "Tim B" <firstname.lastname@example.org>');
Make sure to leave a space before the <
Having this problem too, using Perl...
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.
Originally Posted by mafeldman
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 email@example.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?
Originally Posted by atomicnuke
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...
Tags for this Thread