i'm tryin to send an email from php script to the address that the user provides in a form text box. Everything works fine...but when i'm tryin to send it to email@hotmail.com, the email body is blank...i'm not doin base64 encode thing all i'm doin is this:
/ To send HTML mail, you can set the Content-type header. /
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "X-Priority: 1\n";
/ additional headers /
//$headers .= "To: $email\r\n";
$headers .= "From: webmaster@junk.com\r\n";
$subject = "Test";
/ and now mail it /
//print "<br>$email<br>$subject<br>$headers<br>$messagebody<br>";
mail($email, $subject, $messagebody, $headers);
it works fine for different mail accounts and different mail clients too...but does not work with hotmail...any suggestions? if i've to do the base64 encode thing then is this all i do:
$message = base64_encode($messagebody);
mail($email, $subject, $message, $headers);
any suggestions?
thanks in advance
i just tried it and it gives lotsa junk, but hey at least the email in hotmail account is not empty!!!