Another couple of things you will want to look at doing is whitelisting
your web server in the SPF record of your domain name (try the wizard at
openspf.org for this), and setting up reverse DNS for your server (ask
whoever hosts your server about this one).
The ratio of text content to HTML + images is usually a significant
factor, so try to include a few good paragraphs of text in every mailout.
Spam filters look favourably on HTML emails that come with a plain text
version as well.
Hope that helps,
Harvey.
On 4/11/2010 12:20 p.m., Brendan Brink 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]
--
Harvey Kane
Phone:
- Auckland: +64 9 950 4133
- Wanaka: +64 3 746 8133
- Mobile: +64 21 811 951
Email: [email protected]
If you need to contact me urgently, please read my email policy
www.ragepank.com/email/
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]