I use these 2 mail functions, question is how to modifie them so that they would work on linux and on window servers
function sendmail($from,$to,$subject,$content){
// generate email headers
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: $sitecom <$from>\n";
$headers .= "Reply-To: $ADMIN_MAIL <$from>\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";
$msg = stripslashes($content);
mail($to, $subject, $msg, $headers);
}
function sendhtmlmail($from,$to,$subject,$content){
// generate email headers
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= "From: $sitecom <$from>\n";
$headers .= "Reply-To: $ADMIN_MAIL <$from>\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";
$msg = stripslashes($content);
mail($to, $subject, $msg, $headers);
}