I have this funtion I use to send mail:
function send_mail($from_name, $from_mail, $to_name, $to_mail, $subject, $message) {
global $server;
$headers = "From: \"$from_name\" <$from_mail>\n";
$headers .= "To: \"$to_name\" <$to_mail>\n";
$headers .= "Reply-To: \"$from_name\" <$from_mail>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Mailer: PHP4\n";
return(mail($to_mail, $subject, $message, $headers));
}
If I end the $headers with \r\n (like it should, right?) the linux server puts the headers in the message body. with out it (only the \n) it works fine.
The windows server is the other way around. Is there a way to setup the headers so both (Exchange??) and sendmail handles the message the same way?
Thanks