Making Valid Email Headers

liunx

Guest
hi i noticed in my mail queue of whm i get some bounced mails from big companies, i assume they reject our mails because of stricter spam check,<br /><br />I use php to send email,<br />please look at sa sample header that got bounced (any suggestions?):<br />++++++++++++++++++++++++++++++++++++++++++++++++++<br /><br />1Ex5Cn-0002vP-Tj-H<br />nobody 99 99<br /><xx@yyyycom><br />1137082901 3<br />-ident nobody<br />-received_protocol local<br />-body_linecount 26<br />-auth_id nobody<br />-auth_sender <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --><br />-allow_unqualified_recipient<br />-allow_unqualified_sender<br />-local<br />-sender_set_untrusted<br />XX<br />1<br />[email protected]<br /><br />156P Received: from nobody by yyy.tchdns.com with local (Exim 4.52)<br />id 1Ex5Cn-0002vP-Tj<br />for <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->; Thu, 12 Jan 2006 16:21:41 +0000<br />029T To: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --><br />041 Subject: BREAKING News From yyy<br />051F From: yyy<[email protected]><br />055R Reply-To: yyy<[email protected]><br />058* Return-Path: yyy<[email protected]><br />018 MIME-Version: 1.0<br />045 Content-type: text/plain; charset=iso-8859-1<br />055 X-Sender: yyy<[email protected]><br />014 X-Priority: 3<br />026 X-MSMail-Priority: Normal<br />024 X-Mailer: My PHP Mailer<br />036 X-MimeOLE: Produced By yyy<br />056I Message-Id: <[email protected]><br />038 Date: Thu, 12 Jan 2006 16:21:41 +0000<!--content-->
Hello,<br /><br />I found this on the PHP manual, someone posted some nice headers:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?<br />// if you have a problem same spam enginie or hotmail use these<br />// sample headers.( mail your friends, maili you.)<br />   $headers="";<br />   $headers .= "X-Sender:  $mail <$mail>\n"; //<br />   $headers .="From: $maili <$maili>\n";<br />   $headers .= "Reply-To: $maili <$maili>\n";<br />   $headers .= "Date: ".date("r")."\n";<br />   $headers .= "Message-ID: <".date("YmdHis")."selman@".$_SERVER['SERVER_NAME'].">\n";<br />   $headers .= "Subject: $subject\n"; // subject write here<br />   $headers .= "Return-Path: $maili <$maili>\n";<br />   $headers .= "Delivered-to: $maili <$maili>\n";<br />   $headers .= "MIME-Version: 1.0\n";<br />   $headers .= "Content-type: text/html;charset=ISO-8859-9\n";<br />   $headers .= "X-Priority: 1\n";<br />   $headers .= "Importance: High\n";<br />   $headers .= "X-MSMail-Priority: High\n";<br />   $headers .= "X-Mailer: My Mailer With PHP!\n";<br /><br />?><!--c2--></div><!--ec2--><!--content-->
 
Back
Top