Get rid of all the priority settings, the message-id is typically set by the mail server so get rid of that. I'm also pretty sure htmlMimeMail sets all the mime/content-type/date headers for you so get rid of those...actually just comment out all the headers your setting.
On Thu, Nov 4, 2010 at 10:20 AM, Brendan Brink <[email protected]> wrote: > hi there, > > Trying to improve the ability of emails I create through HTMLmimemail to get > through spam filters and proving problems... > > below is the headers I am setting /trying to set - seems like the messageID > is a big factor in spam, any advice on how I should change the settings? > > The email itself is a combination of a couple images and some text and HTML > format. > > much appreciated... > > $mail= new htmlMimeMail(); > $mail->setReturnPath($themessage['email_from']); > $mail->setFrom($themessage['email_from']); > $mail->setHeader('Reply-To',$themessage['email_from']); > $mail->setHeader('X-Mailer','Company Name'); > $mail->setSubject($themessage['subject']); > $mail->setSMTPParams('localhost','25'); > $mail->setHeader("Date","".date("r").""); > > $mail->setHeader("Message-ID","<".date("YmdHis")."@".$_SERVER['SERVER_NAME'].">"); > $mail->setHeader("MIME-Version","1.0"); > //$mail->setHeader("Content-type:","text/html;charset=ISO-8859-9"); > $mail->setHeader("X-Priority","1"); > $mail->setHeader("Importance","1"); > $mail->setHeader("X-MSMail-Priority","High"); > > -- > NZ PHP Users Group: http://groups.google.com/group/nzphpug > To post, send email to [email protected] > To unsubscribe, send email to > [email protected] -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
