Hi!
I've managed to put together a header in my mails that escapes both Gmail and Hotmail's mail filters, so I guess it's not all that bad. However, for my work mail, which has a very nasty filter, it gets stuck in quarantine. So I figured I should ask for some advice.
Here's the code ("xxx" is not there in my implementation, would be a great way to get stuck in spam filters if it were :)):
$header = "";
$header .= "Reply-To: xxx <postmaster@".$_SERVER['SERVER_NAME'].">\r\n";
$header .= "Return-Path: xxx <postmaster@".$_SERVER['SERVER_NAME'].">\r\n";
$header .= "From: xxx <postmaster@".$_SERVER['SERVER_NAME'].">\r\n";
$header .= "Organization: xxx \r\n";
$header .= "Content-Type: text/plain; charset=utf-8\r\n";
$sent = mail("xxx@xxx.xxx", "xxx", $message, $header);
Furthermore, it does get a unique message ID automatically. I've also checked that the host supports this "reverse DNS" thingy which I've heard about.
So, hope someone can help me out. Thanks!