Hello.
This is my mail function
function send_mail($to,$email,$subject,$text)
{
//globals from config.php
global $admin_name,$admin_email;
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $admin_name <$admin_email>\r\n";
$headers .= "To: $to <$email>\r\n";
//$headers .= "Reply-To: $admin_name <$admin_email>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: PHP / ".phpversion();
@mail($to,$subject,$text,$headers);
}
When i send it to an hotmail account it works fine, but when i send it to someone that uses outlook all the headers is displayed in the body of the message. I replaced sensitive data with X.
Content-type: text/html; charset=iso-8859-1
From: XXX <XX@XX.sX>
To: XXX <XXXX@XXXX.XX>
X-Priority: 1
X-MSMail-Priority: High
X-Mailer: PHP / 4.2.2
Message-Id: <20030304164416.ED27642DD@srv1.b-one.nu>
Date: Tue, 4 Mar 2003 17:44:16 +0100 (CET)
Body of the message
Any ideas what to do?