Hi Brendan, Probably a better idea to trouble shoot starting with the actual output first (real email headers).
Unless someone here is very familiar with that class, those method calls don't tell much of a story without knowing what they end up generating. Those priorties at the end seem to conflict though. On another note: Many spam filters have a set image/text ratio threshold. It was an old spammers trick to send emails with their content inside images to avoid the dodgey content being picked up. How big are those images compared to the text? Maybe try removing the images from the content string and see if the message makes it through before resting blame on headers. A ----- Original Message ----- From: Brendan Brink To: [email protected] Sent: Thursday, November 04, 2010 12:20 PM Subject: [phpug] HTMLmimemail and messageid 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]
