|
Posted by bobkaku on 03/14/06 08:37
I added "MIME-Version: 1.0\r\nContent-Type:text/html;
charset=iso-8859-1\r\n" as one of the parameters in the mail( )
function to replace the "Nobody" with a real From: email. That worked.
But if I attempt to add any other terms, such as the sender's name and
location, the MIME parameter above seems to ignore the "\n" line feeds
and put the these other terms ahead of the mail message.
Here's my code:
mail("$toaddress", "$subject", "$mailcontent", "MIME-Version:
1.0\r\nContent-Type:text/html; charset=iso-8859-1\r\nFrom: ".
$youremail
. "\r\n" . $yourname . "\r\n");
The value for $yourname appears ahead of the message [$mailcontent] on
the same line. What I would like it to do is display the message, go
to a new line, then display $yourname.
Thanks in advance.
[Back to original message]
|