Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I lower the spam score of my email message?

I am sending a new logon and password to a user, however when I do on a test version of our site on the internet the Spam score is 4.6 by spam assassin. Which means it gets trapped.

The Email is HTML (so the marketing dept have their nice fonts and colours) with a linked image.

The MailMessage() object does not appear to give me a lot of control over the output format of the message.

What measures could I take to lower the spam score?

I am sending using this:

/* send an email */
MailMessage msg = new MailMessage();
msg.IsBodyHtml = true;
//msg.BodyEncoding = Encoding.UTF8;
msg.To.Add(new MailAddress(sToEmail));
msg.From = new MailAddress(sFromEmail);
msg.Subject = sEmailSubject;
msg.Body = sEmailTemplate;
try
{
    client.Send(msg);
}

The spam score is this:

X-Spam-Score: 4.6 (++++)
X-Spam-Report: Spam detection software report (4.6 points):
    pts rule name              description
    ---- ---------------------- --------------------------------------------------
    1.8 HTML_IMAGE_ONLY_20     BODY: HTML: images with 1600-2000 bytes of words
    0.0 HTML_MESSAGE           BODY: HTML included in message
    1.7 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts
    1.1 HTML_MIME_NO_HTML_TAG  HTML-only message, but there is no HTML tag
    0.1 RDNS_NONE              Delivered to trusted network by a host with no rDNS
like image 976
Phil Hannent Avatar asked Dec 07 '09 16:12

Phil Hannent


People also ask

What causes high spam score?

Number of Domains Linked-To Spam sites are more likely to have abnormally high or low unique domains to which they link. 22. Ratio of External Links to Content Spam sites are more likely to have abnormal ratios of links to content.

What is a good email spam score?

The higher the positive score is for your email, the higher the probability that the message is spam. Generally, your email should have a score of 5.0 or lower to be considered passing. The lower your score, the less likely your email is to be marked spam.


1 Answers

Two solutions:

  1. Add more content, so that the <img> is not the main part of the email - loads more content in clean text without tags. (I know it looks lame, but copyright notices, unsubscribe instructions and registration rules make a really good text padding) Add a text-only version in a new mime part. Send a properly constructed HTML which actually contains the <html> tag.

  2. Smack marketing people with a clue-by-four many times and send text emails in text only - as $DEITY intended.

like image 102
viraptor Avatar answered Sep 19 '22 16:09

viraptor