Tips that prevent your mailing being marked as ‘spam’

Introduction

The last couple of weeks I was working on writing a mailing/newsletter system myself. One of the first questions that came up was “how do I prevent that my newsletter will be marked as spam”. Although this article has nothing to do with PHP I still like to put it in the spotlight. I will give some tips on how to avoid your mail being marked as spam, some you will know, others you won’t.

How is determined if my email is spam?
Mostly this is done by so called spam filters (server side or client side), some well known examples:

Some of them work with the Bayesian filter. This filter is one of the most accurate filters available. It will detect 98% of the spam mails by an algorithm. Essentially the filter will check if words occur a lot in spam mails but not in normal mails, if spam words occur a lot in a mail we can assume we are dealing with a spam mail. Before we can use this filter we need to build a database with legitimate words. This database is build by the filter, it monitors all outgoing mails from the user and the incoming mails. By checking which words are used in the outgoing mails from the user it can “learn” which words are legitimate. Each word will get a score, the score will represent the probability of the mail being a spam mail (the mail in which the word appears).

An example:
We take the word “casino”, let’s suppose this word occurs in 100 of the 500 spam mails and only in 5 of the 500 legitimate mails. The spam score for this word will be:

(100/500) / (5/500 + 100/500) = 0,95

Off course spam filters use a lot of other techniques too.

Tips to lower your spamscore
I hope you now have a more clear understanding of how the most spam filters work. So lets start with some tips.

  • don’t use words and phrases that are often used in spam mails, for a small list see the Microsoft Junk E-Mail Filter Readme, also the use of complete phrases in capitals is killing.
  • use a dedicated mailserver, why? Most filters will recognize the IP from which a mail is coming, if the mailserver IP is recognized as a server from which the filter is getting legitimate mails more often, it will work in your advantage
  • Don’t send any attachments with a mailing, virus scanners aren’t too happy about them, neither are spam filters
  • Send good content. Try to make the content of each newsletter as different as possible, filters will recognize texts that have occurred before. Also pay attention not to send just one big image and just a few lines of text, you will get a penalty for that one too. Find a balance between the amount of images, the size of them, and the amount of text.
  • Use a real mail address from which the newsletter is coming, filters will often check the domain (using an address with a domain like hotmail, gmail, yahoo,… doesn’t count).
  • Don’t use url shorteners, url shorteners like bit.ly or TinyUrl are often used by spammers

A last one, but nevertheless an important one “don’t prevent your mail being marked as spam”. Okay that sounds silly right? What I mean is that if you write a whole paragraph in your mailing about how someone can unsubscribe this will be seen as suspicious also avoid text like “this is not spam”.

More tests that will possibly increase your spam score can be found on the website of SpamAssassin. Some tests that caught my eye:

  • use of the tbody html tag
  • message body has many words used only once (this one increases your spam score a lot)
  • Invalid date in header (wrong EST timezone)

Keep the above in mind when writing your next mailing 😉 good luck!

Comments

3,289 responses to “Tips that prevent your mailing being marked as ‘spam’”

  1. DavidZed Avatar
    DavidZed
  2. Franciswar Avatar
    Franciswar

    costco online pharmacy: canadian pharmacy 365 – rx online pharmacy

  3. avto arenda sochi 463 Avatar

    Прокат авто Сочи недорого https://avto-arenda-sochi.ru

  4. outreachseo 797 Avatar

    SEO-продвижение https://outreachseo.ru сайта для роста посещаемости и увеличения продаж. Проводим аудит, оптимизацию структуры, работу с контентом и техническими параметрами сайта, чтобы улучшить позиции в поисковых системах и привлечь целевой трафик.

  5. Matthewgar Avatar
    Matthewgar

    монро казино сайт монро онлайн казино

  6. Thomaswes Avatar
    Thomaswes

    https://usmedssaver.com/# canada pharmacy online legit

  7. Franciswar Avatar
    Franciswar

    pharmacy wholesalers canada: Certified North Rx – canadian medications

  8. Jamessoich Avatar
    Jamessoich

    mexico online pharmacy: farmacia mexicana en linea – mexico farmacia

  9. DavidZed Avatar
    DavidZed

    https://certifiednorthrx.shop/# reputable canadian pharmacy

  10. WilliamImpek Avatar
    WilliamImpek

    order meds from mexico BajaRx Direct online pharmacies in mexico

  11. Thomaswes Avatar
    Thomaswes

    https://certifiednorthrx.com/# Certified North Rx

  12. Franciswar Avatar
    Franciswar

    pharmacy rx world canada: Certified North Rx – canadianpharmacymeds

  13. DavidZed Avatar
    DavidZed

    http://certifiednorthrx.com/# canadian pharmacy no scripts

  14. Jamessoich Avatar
    Jamessoich

    canadian pharmacy price checker: drugs from canada – canadian drugs

  15. DavidJar Avatar
    DavidJar

    Профессиональное SEO-продвижение https://outreachseo.ru сайтов для бизнеса. Анализ конкурентов, оптимизация структуры и контента, улучшение технических параметров и развитие сайта для роста позиций в поисковых системах и увеличения целевого трафика.

  16. Franciswar Avatar
    Franciswar

    BajaRx Direct: BajaRx Direct – mexican pharmacy prices

  17. Thomaswes Avatar
    Thomaswes

    https://certifiednorthrx.com/# Certified North Rx

  18. DavidZed Avatar
    DavidZed

    https://bajarxdirect.shop/# order medication from mexico

  19. DavidWhoro Avatar
    DavidWhoro

    Explore detailed insights on spiral metal wall clocks at TopXClocks, including features, comparisons, and expert recommendations for smarter buying decisions.

  20. WilliamImpek Avatar
    WilliamImpek

    legitimate online pharmacy usa US Meds Saver mail order pharmacy india

  21. Franciswar Avatar
    Franciswar

    safe canadian pharmacies: Certified North Rx – Certified North Rx

  22. Thomaswes Avatar
    Thomaswes

    https://certifiednorthrx.com/# canadian pharmacy king reviews

  23. Chestergam Avatar
    Chestergam

    купить кольцо с бриллиантом https://kolca-pomolvka-msk.ru

  24. Cliftongal Avatar
    Cliftongal

    Current weather in Podgorica in July, today and in the coming days. Accurate forecast of temperature, precipitation, wind, and humidity. Find out what the weather is like in Podgorica now, the weekly forecast for the month, and weather trends in Montenegro’s capital.

  25. Thomasbreet Avatar
    Thomasbreet

    Если интересует новый Ментал слот – мы вынесли всё в отдельный пост: что изменилось/что добавили, первые впечатления, детали по бонускам и на что обратить внимание перед стартом. Удобно открыть, быстро разобраться и уже дальше обсуждать в группе.

  26. Jamessoich Avatar
    Jamessoich

    mexican rx: pharmacy in mexico – mexican drug stores

  27. Franciswar Avatar
    Franciswar

    canadian king pharmacy: Certified North Rx – Certified North Rx

  28. Timothyscouh Avatar
    Timothyscouh

    Выбирать площадку “наугад” – сомнительное удовольствие, особенно когда везде обещают одно и то же. Гораздо надежнее ориентироваться на лучшие казино по отзывам игроков, где люди реально пишут про скорость выплат, работу поддержки, честность условий и то, как ведут себя бонусы на практике. В нашем Telegram-канале мы собираем такие варианты в удобные подборки: отмечаем, что чаще всего хвалят, на что жалуются, где условия адекватные, а где начинаются “сюрпризы” после депозита. Так вы быстрее найдете нормальный вариант под свой формат игры и не потратите время на сомнительные сайты.

  29. DavidZed Avatar
    DavidZed

    http://bajarxdirect.com/# mexico pharmacy price list

  30. Franciswar Avatar
    Franciswar

    BajaRx Direct: BajaRx Direct – pharmacy delivery

  31. WilliamImpek Avatar
    WilliamImpek

    mexico prescription online BajaRx Direct BajaRx Direct

  32. Jamessoich Avatar
    Jamessoich

    Certified North Rx: best rated canadian pharmacy – Certified North Rx

  33. DavidZed Avatar
    DavidZed

    https://bajarxdirect.com/# mexican pharmacy that ships to the us

  34. Cliftongal Avatar
    Cliftongal

    Explore detailed insights on https://topxclocks.com/photo-frame-family-time-clocks/ photo frame family time clocks at TopXClocks, including features, comparisons, and expert recommendations for smarter buying decisions.

  35. tga-info 245 Avatar

    Информационный портал https://tga-info.ru/ со статьями и обзорами на разные темы. Материалы о технологиях жизни работе доме и повседневных вопросах. Актуальные новости полезные советы рекомендации и интересная информация для читателей.

  36. nesmetnoe 9 Avatar

    Интернет ресурс http://www.nesmetnoe.ru с полезными статьями советами и обзорами. Материалы о жизни здоровье технологиях доме и повседневных вопросах. Практические рекомендации интересные факты и актуальная информация для широкой аудитории.

Leave a Reply

Your email address will not be published. Required fields are marked *