I need to have my emails received as being from Niche.
It seems I can change the from to anything a long as it has an “@” in it as in:
$headers = "From: this@from_me.com\\r\
";
$headers .= "MIME-Version: 1.0\\r\
"
. "Content-Type: multipart/mixed; boundary=\\"$bound_text\\"";
However, like I said, I need to be received as just plain Niche, but this doesn’t work:
$headers = "From: Niche\\r\
";
$headers .= "MIME-Version: 1.0\\r\
"
. "Content-Type: multipart/mixed; boundary=\\"$bound_text\\"";
Why is that?
ralphm
2
What you need to do is put the email address and the name in there together. E.g. try this:
$headers = "From: Niche <this@from_me.com>\\r\
";
Thanks ralph.m. That worked. Can you recommend an online explanation of the mail() function other than the manual?
ralphm
4
Hm, PHP is not really my thing. I tend to refer to a few books I have. (I agree that the manual is hopeless.) Perhaps this might be of some use?
Doug_G
5
This is where mail message format and syntax comes from. There are some newer rfc’s but this was the beginning.
The PHP manual refers to 1996 standards. Are the '82 standards from post #5 still valid?