header problem
| From: | mike | Date: | Sat, 31 Aug 2002 16:56:02 +0000 |
| Subject: | header problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114766@lists.php.net to get a copy of this message | ||
i'm setting up a messages option on my site, i was looking in the
documentation and read that if headers are not included in an e-mail, the
message is sent to the junk folder, i don't use hotmail (so i would not
know), however i am adding headers: using
// The headers
$myHeaders = "From: \"".Autoresponse."\"
<".$myAddress.">\r\n";
$myHeaders .= "To: \"".$myName."\"
<".$myAddress.">\r\n";
$myHeaders .= "Reply-To: \"".$myName."\"
<".$myAddress.">\r\n";
$myHeaders .= "MIME-Version: 1.0\r\n";
$myHeaders .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$myHeaders .= "X-Priority: 1\r\n";
$myHeaders .= "X-MSMail-Priority: High\r\n";
$myHeaders .= "X-Mailer: Just My Server";
// send the e-mail
mail($myAddress, $mySubject, $myMessage, $myHeaders);
##############################
when testing the file i get the response e-mail, however at the top of the
e-mail i get the following:
Content-Type: text/html; charset=iso-8859-1 X-Priority: 1 X-MSMail-Priority:
High X-Mailer: Just My Server
this must mean that i have written the headers wrong, can someone point me
in the right direction
thanks
| Mike |