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

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

  1. Tristanced Avatar

    online pharmacy for Kamagra kamagra BlueWaveMeds

  2. Davidbluth Avatar
    Davidbluth

    cialis generic: EveraMeds – Tadalafil Tablet

  3. Tristanced Avatar

    best price for viagra 100mg AeroMedsRx Viagra tablet online

  4. Davidbluth Avatar
    Davidbluth

    Blue Wave Meds: fast delivery Kamagra pills – Blue Wave Meds

  5. Kennethbex Avatar

    Cialis over the counter: cialis for sale – EveraMeds

  6. Tristanced Avatar

    Cheap generic Viagra online AeroMedsRx Cheap generic Viagra online

  7. Davidbluth Avatar
    Davidbluth

    cheapest viagra: Order Viagra 50 mg online – Cheap generic Viagra

  8. ZacharyIneks Avatar
    ZacharyIneks

    https://aeromedsrx.com/# buy Viagra over the counter

  9. Davidbluth Avatar
    Davidbluth

    EveraMeds: EveraMeds – EveraMeds

  10. Joshuabaicy Avatar

    ΠŸΡ€ΠΈΠ³ΠΎΠ²ΠΎΡ€ ΠΏΠΎ ст 112 Ρ‡ 1 Π½Π΅ ΠΏΡ€ΠΈΠ·Π½Π°Π» Π²ΠΈΠ½Ρƒ β€” Π΄Π΅Π»Π°ΠΉΡ‚Π΅ ставку Π² 1win ΠΈ Π½Π°ΡΠ»Π°ΠΆΠ΄Π°ΠΉΡ‚Π΅ΡΡŒ быстрым Π²Ρ‹Π²ΠΎΠ΄ΠΎΠΌ Π²Ρ‹ΠΈΠ³Ρ€Ρ‹ΡˆΠ΅ΠΉ! ΠžΡ‚ΠΊΡ€Ρ‹Π²Π°ΠΉΡ‚Π΅ Π»ΠΈΡ‡Π½Ρ‹ΠΉ ΠΊΠ°Π±ΠΈΠ½Π΅Ρ‚ Π·Π° ΠΌΠΈΠ½ΡƒΡ‚Ρƒ, ΠΏΠΎΠ»ΡƒΡ‡Π°ΠΉΡ‚Π΅ бонусы Π·Π° Π΄Π΅ΠΏΠΎΠ·ΠΈΡ‚ Π΄ΠΎ 5000 Ρ€ΡƒΠ±., Π΄Π΅Π»Π°ΠΉΡ‚Π΅ ставки Π½Π° спорт с высокими коэффициСнтами ΠΈ участвуйтС Π² Π»Π°ΠΉΠ²-ставках ΠΈ фриспинах β€” всё это с ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡŒΠ½Ρ‹ΠΌ Π΄Π΅ΠΏΠΎΠ·ΠΈΡ‚ΠΎΠΌ ΠΈ круглосуточной ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠΎΠΉ.

  11. ZacharyIneks Avatar
    ZacharyIneks

    https://bluewavemeds.xyz/# online pharmacy for Kamagra

  12. Tristanced Avatar

    Blue Wave Meds BlueWaveMeds online pharmacy for Kamagra

  13. Kennethbex Avatar

    online pharmacy for Kamagra: kamagra – BlueWaveMeds

  14. Joshuabaicy Avatar

    Π’Ρ‹Π²Π΅Π΄ΠΈ дСньги с 1 win прямо сСйчас β€” быстро ΠΈ Π±Π΅Π· Ρ…Π»ΠΎΠΏΠΎΡ‚ Π² Π»ΠΈΡ‡Π½ΠΎΠΌ ΠΊΠ°Π±ΠΈΠ½Π΅Ρ‚Π΅! НаслаТдайся ΠΊΡ€ΡƒΠΏΠ½Ρ‹ΠΌΠΈ Π²Ρ‹ΠΈΠ³Ρ€Ρ‹ΡˆΠ°ΠΌΠΈ ΠΈΠ· ΠΎΠ½Π»Π°ΠΉΠ½ ΠΊΠ°Π·ΠΈΠ½ΠΎ, фриспинами ΠΈ бонусами Π·Π° Π΄Π΅ΠΏΠΎΠ·ΠΈΡ‚, Π΄Π΅Π»Π°ΠΉ ставки Π½Π° спорт с высокими коэффициСнтами, Π° Π»Π°ΠΉΠ²-ставки дарят эмоции Π² Ρ€Π΅Π°Π»ΡŒΠ½ΠΎΠΌ Π²Ρ€Π΅ΠΌΠ΅Π½ΠΈ. ΠœΠΈΠ½ΠΈΠΌΠ°Π»ΡŒΠ½Ρ‹ΠΉ Π΄Π΅ΠΏΠΎΠ·ΠΈΡ‚, круглосуточная ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° ΠΈ ΠΌΠ³Π½ΠΎΠ²Π΅Π½Π½Ρ‹Π΅ Π²Ρ‹ΠΏΠ»Π°Ρ‚Ρ‹ Π΄Π΅Π»Π°ΡŽΡ‚ 1win Ρ‚Π²ΠΎΠΈΠΌ ΠΈΠ΄Π΅Π°Π»ΡŒΠ½Ρ‹ΠΌ Π²Ρ‹Π±ΠΎΡ€ΠΎΠΌ для Ρ€Π΅Π°Π»ΡŒΠ½Ρ‹Ρ… Π²Ρ‹ΠΈΠ³Ρ€Ρ‹ΡˆΠ΅ΠΉ ΠΈ ΠΊΠΎΠΌΡ„ΠΎΡ€Ρ‚Π½ΠΎΠΉ ΠΈΠ³Ρ€Ρ‹!

  15. Tristanced Avatar

    Sildenafil 100mg price Viagra online price Cheap Viagra 100mg

  16. Davidbluth Avatar
    Davidbluth

    Generic Tadalafil 20mg price: Buy Tadalafil 10mg – EveraMeds

  17. Joshuabaicy Avatar

    Π’ΠΈΠ½ ΠΊΠΎΠ΄ шкода октавия Ρ‚ΡƒΡ€ 1 6 β€” Π½Π°Ρ‡Π½ΠΈ ΠΈΠ³Ρ€Π°Ρ‚ΡŒ прямо сСйчас Π² 1win ΠΈ ΠΏΠΎΠ»ΡƒΡ‡ΠΈ бонусы Π·Π° Π΄Π΅ΠΏΠΎΠ·ΠΈΡ‚ Π΄ΠΎ 5000 ?! ΠžΡ†Π΅Π½ΠΈ быстрый Π²Ρ‹Π²ΠΎΠ΄ срСдств, Π½Π΅ΠΏΡ€Π΅Π²Π·ΠΎΠΉΠ΄Π΅Π½Π½Ρ‹Π΅ ставки Π½Π° спорт с высокими коэффициСнтами, Π΅ΠΆΠ΅Π΄Π½Π΅Π²Π½Ρ‹Π΅ фриспины ΠΈ круглосуходочный Π»ΠΈΡ‡Π½Ρ‹ΠΉ ΠΊΠ°Π±ΠΈΠ½Π΅Ρ‚. Π”Π΅Π»Π°ΠΉ ставки Π½Π° слоты ΠΈΠ»ΠΈLive-ставки, Π²Ρ‹ΠΈΠ³Ρ€Ρ‹Π²Π°ΠΉ ΠΊΡ€ΡƒΠΏΠ½ΠΎ ΠΈ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠΉ ΠΏΡ€ΠΎΠΌΠΎΠΊΠΎΠ΄ для бонусов β€” всё для Ρ€Π΅Π°Π»ΡŒΠ½Ρ‹Ρ… ΠΏΠΎΠ±Π΅Π΄ ΠΈ максимальной Π²Ρ‹Π³ΠΎΠ΄Ρ‹!

  18. ZacharyIneks Avatar
    ZacharyIneks

    https://bluewavemeds.com/# order Kamagra discreetly

  19. Tristanced Avatar

    EveraMeds EveraMeds EveraMeds

  20. Davidbluth Avatar
    Davidbluth

    kamagra: order Kamagra discreetly – trusted Kamagra supplier in the US

  21. Joshuabaicy Avatar

    Ѐаустино 1 Π²ΠΈΠ½ΠΎ β€” насладись настоящим Π²ΠΈΠ½Π½Ρ‹ΠΌ ΡˆΠ΅Π΄Π΅Π²Ρ€ΠΎΠΌ вмСстС с 1win! ΠžΡ‚ΠΊΡ€Ρ‹Π²Π°ΠΉ Π»ΠΈΡ‡Π½Ρ‹ΠΉ ΠΊΠ°Π±ΠΈΠ½Π΅Ρ‚, ΠΏΠΎΠ»ΡƒΡ‡Π°ΠΉ бонусы Π·Π° Π΄Π΅ΠΏΠΎΠ·ΠΈΡ‚ Π΄ΠΎ 150% ΠΈ фриспины, Π΄Π΅Π»Π°ΠΉ ставки Π½Π° спорт ΠΈ ΠΈΠ³Ρ€Π°ΠΉ Π² ΠΎΠ½Π»Π°ΠΉΠ½ ΠΊΠ°Π·ΠΈΠ½ΠΎ с высокими коэффициСнтами ΠΈ быстрым Π²Ρ‹Π²ΠΎΠ΄ΠΎΠΌ Π²Ρ‹ΠΈΠ³Ρ€Ρ‹ΡˆΠ΅ΠΉ. ΠœΠΈΠ½ΠΈΠΌΠ°Π»ΡŒΠ½Ρ‹ΠΉ Π΄Π΅ΠΏΠΎΠ·ΠΈΡ‚ β€” Ρ‚ΠΎΠ»ΡŒΠΊΠΎ 300 Ρ€ΡƒΠ±Π»Π΅ΠΉ, Π° кэшбэк Π΄ΠΎ 8% Π΄Π΅Π»Π°Π΅Ρ‚ ΠΈΠ³Ρ€Ρƒ Π΅Ρ‰Π΅ Π²Ρ‹Π³ΠΎΠ΄Π½Π΅Π΅!

  22. ZacharyIneks Avatar
    ZacharyIneks
  23. Kennethbex Avatar

    BlueWaveMeds: kamagra – kamagra oral jelly

  24. Tristanced Avatar

    buy cialis pill cialis for sale EveraMeds

  25. Davidbluth Avatar
    Davidbluth

    AeroMedsRx: Viagra tablet online – AeroMedsRx

  26. ZacharyIneks Avatar
    ZacharyIneks
  27. Tristanced Avatar

    Cialis without a doctor prescription Buy Cialis online Cialis 20mg price

  28. Davidbluth Avatar
    Davidbluth

    AeroMedsRx: AeroMedsRx – Cheap generic Viagra online

  29. Tristanced Avatar

    EveraMeds EveraMeds Buy Cialis online

  30. Davidbluth Avatar
    Davidbluth

    cialis generic: Cheap Cialis – buy cialis pill

  31. Kennethbex Avatar

    Cialis without a doctor prescription: EveraMeds – EveraMeds

  32. ZacharyIneks Avatar
    ZacharyIneks

    http://bluewavemeds.com/# online pharmacy for Kamagra

Leave a Reply

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