reshadat
Mar 22nd 2008, 12:19 am
HI. I am trying to make a script and I'm having some problem. I'm sending HTML email and therefore trying to send the proper headers. But somehow its not working. The headers are not passed as they are supposed to be passed.The email is not in HTML and also the sender is not the one which I stored in $reg. here is the code:
$from1 = "MIME-Version: 1.0\n";
$from1 .= "Content-type: text/html; charset=iso-8859-1\n";
$from1 .= "From: ".$reg."\n";
$from1 .= "Reply-To: ".$reg."\n";
And here is the command to send email:
mail($_POST['email'], $subject, $mess, $from1); //Message to applicant.
Please help me. Thanks!
$from1 = "MIME-Version: 1.0\n";
$from1 .= "Content-type: text/html; charset=iso-8859-1\n";
$from1 .= "From: ".$reg."\n";
$from1 .= "Reply-To: ".$reg."\n";
And here is the command to send email:
mail($_POST['email'], $subject, $mess, $from1); //Message to applicant.
Please help me. Thanks!