Here is the code, also does not take the values from the sql server whereas with gmail it is sent correctly, also subject is ok with gmail. Thinking maybe hotmail has some kind of code stripping feature to protect either their users or their servers.
[php]
function mailme($sendto,$sendername,$from,$subject,$sendmailbody,$bcc="")
{
global $SERVER_NAME;
$subject = nl2br($subject);
$sendmailbody = nl2br($sendmailbody);
$sendto = $sendto;
if($bcc!="")
{
$headers = “Bcc: “.$bcc.”\n”;
}
$headers = “MIME-Version: 1.0\n”;
$headers .= “Content-type: text/html; charset=UTF-8\n”;
$headers .= “X-Priority: 3\n”;
$headers .= “X-MSMail-Priority: Normal\n”;
$headers .= “X-Mailer: PHP/”.“MIME-Version: 1.0\n”;
$headers .= “From: " . $from . “\n”;
$headers .= “Content-Type: text/html\n”;
mail(”$sendto","$subject","$sendmailbody","$headers");
[/php]
I should add the subject line is in Turkish and is extracted from a file saved as iso-8859-9 because of some other problems previously with the encoding. All the other files are utf-8. Is there something blatantly wrong I am doing or is it just a quirk with hotmail since it goes without any problems whatsoever to gmail address.
Thanks in advance.