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,710 responses to “Tips that prevent your mailing being marked as ‘spam’”

  1. watch mlb online Avatar

    But wanna say that this is handy, Thanks for taking your time to write this.

  2. Raymondcluse Avatar
    Raymondcluse

    Just now, I needed Ivermectin tablets and discovered this source. You can get 3mg, 6mg & 12mg tablets with express shipping. For treating parasites safely, visit this link: official store. Fast delivery

  3. Scottnucky Avatar

    Всё ΠΎ Π·Π΄ΠΎΡ€ΠΎΠ²ΡŒΠ΅ https://medfactor.com.ua Π½Π° ΠΎΠ΄Π½ΠΎΠΌ мСдицинском ΠΏΠΎΡ€Ρ‚Π°Π»Π΅: Π±ΠΎΠ»Π΅Π·Π½ΠΈ ΠΈ ΠΈΡ… Π»Π΅Ρ‡Π΅Π½ΠΈΠ΅, Π°Π½Π°Π»ΠΈΠ·Ρ‹, ΠΏΡ€Π΅ΠΏΠ°Ρ€Π°Ρ‚Ρ‹, обслСдования ΠΈ ΠΏΡ€ΠΎΡ„ΠΈΠ»Π°ΠΊΡ‚ΠΈΠΊΠ°. ΠœΠ°Ρ‚Π΅Ρ€ΠΈΠ°Π»Ρ‹ ΠΏΠΎΠ΄Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½Ρ‹ с ΠΎΠΏΠΎΡ€ΠΎΠΉ Π½Π° клиничСскиС Π΄Π°Π½Π½Ρ‹Π΅ ΠΈ Π²Ρ€Π°Ρ‡Π΅Π±Π½ΡƒΡŽ ΠΏΡ€Π°ΠΊΡ‚ΠΈΠΊΡƒ. Π§ΠΈΡ‚Π°ΠΉΡ‚Π΅ ΠΎΠ½Π»Π°ΠΉΠ½ Π² любоС врСмя.

  4. RobertoBed Avatar

    Π“Π»Π°Π²Π½Ρ‹Π΅ события https://vesti.in.ua Π£ΠΊΡ€Π°ΠΈΠ½Ρ‹ β€” ΠΊΠΎΡ€ΠΎΡ‚ΠΊΠΎ ΠΈ понятно. ΠœΡ‹ собираСм новости ΠΈΠ· Π£ΠΊΡ€Π°ΠΈΠ½Ρ‹ ΠΈ ΠΌΠΈΡ€Π°, провСряСм Π΄Π°Π½Π½Ρ‹Π΅ ΠΈ Π΄Π°Ρ‘ΠΌ ясныС объяснСния. ΠŸΠΎΠ΄Π±ΠΎΡ€ΠΊΠΈ ΠΏΠΎ Ρ‚Π΅ΠΌΠ°ΠΌ, новости Π³ΠΎΡ€ΠΎΠ΄ΠΎΠ², Π°Π½Π°Π»ΠΈΡ‚ΠΈΠΊΠ°, мнСния, Π²ΠΈΠ΄Π΅ΠΎ. ОбновлСния ΠΊΠ°ΠΆΠ΄Ρ‹ΠΉ час, ΡƒΠ΄ΠΎΠ±Π½ΠΎ Π½Π° смартфонС.

  5. RaymondTergo Avatar

    Онлайн-ΠΆΡƒΡ€Π½Π°Π» https://love.zt.ua для ΠΆΠ΅Π½Ρ‰ΠΈΠ½: ΠΌΠΎΠ΄Π°, Π±ΡŒΡŽΡ‚ΠΈ, психология, любовь, сСмья, Π΄Π΅Ρ‚ΠΈ, Π΄ΠΎΠΌ, ΠΊΠ°Ρ€ΡŒΠ΅Ρ€Π° ΠΈ финансы. ΠžΠ±Π·ΠΎΡ€Ρ‹, Π»Π°ΠΉΡ„Ρ…Π°ΠΊΠΈ, Ρ€Π΅Ρ†Π΅ΠΏΡ‚Ρ‹ ΠΈ инструкции β€” Π±Π΅Π· Β«Π²ΠΎΠ΄Ρ‹Β», с пользой. Π£Π΄ΠΎΠ±Π½Ρ‹Π΅ Ρ€ΡƒΠ±Ρ€ΠΈΠΊΠΈ ΠΈ свСТиС ΠΌΠ°Ρ‚Π΅Ρ€ΠΈΠ°Π»Ρ‹ Π΅ΠΆΠ΅Π΄Π½Π΅Π²Π½ΠΎ.

  6. Rogerpal Avatar
    Rogerpal

    Π­Π»Π΅ΠΊΡ‚Ρ€ΠΎΠ½Π½Ρ‹Π΅ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚Ρ‹ https://zener.ru с прямыми поставками ΠΎΡ‚ ΠΏΡ€ΠΎΠΈΠ·Π²ΠΎΠ΄ΠΈΡ‚Π΅Π»Π΅ΠΉ: микросхСмы, пассивныС элСмСнты, Ρ€Π°Π·ΡŠΡ‘ΠΌΡ‹ ΠΈ ΠΌΠΎΠ΄ΡƒΠ»ΠΈ. Гарантия ΠΎΡ€ΠΈΠ³ΠΈΠ½Π°Π»ΡŒΠ½ΠΎΡΡ‚ΠΈ, ΡΡ‚Π°Π±ΠΈΠ»ΡŒΠ½Ρ‹Π΅ сроки, Π²Ρ‹Π³ΠΎΠ΄Π½Ρ‹Π΅ Ρ†Π΅Π½Ρ‹ ΠΈ ΠΏΠΎΠ΄Π±ΠΎΡ€ ΠΏΠΎΠ΄ Π’Π—. ΠŸΠΎΡΡ‚Π°Π²ΠΊΠΈ для производства, сСрвиса ΠΈ Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ.

  7. FloydHes Avatar
    FloydHes

    РСшил ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ Ρ€Π΅ΠΌΠΎΠ½Ρ‚? студия Π΄ΠΈΠ·Π°ΠΉΠ½Π° ΠΈΠ½Ρ‚Π΅Ρ€ΡŒΠ΅Ρ€Π° москва: ΠΊΠ²Π°Ρ€Ρ‚ΠΈΡ€Ρ‹, Π΄ΠΎΠΌΠ°, Π°ΠΏΠ°Ρ€Ρ‚Π°ΠΌΠ΅Π½Ρ‚Ρ‹ ΠΈ офисы. ΠŸΡ€ΠΎΠ΄ΡƒΠΌΠ°Π½Π½Ρ‹Π΅ ΠΏΠ»Π°Π½ΠΈΡ€ΠΎΠ²ΠΊΠΈ, 3D-ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Ρ‹, сопровоТдСниС Ρ€Π΅ΠΌΠΎΠ½Ρ‚Π° ΠΈ ΠΊΠΎΠ½Ρ‚Ρ€ΠΎΠ»ΡŒ Ρ€Π΅Π°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ. Π‘ΠΎΠ·Π΄Π°Π΅ΠΌ ΠΈΠ½Ρ‚Π΅Ρ€ΡŒΠ΅Ρ€Ρ‹, ΠΎΡ‚Ρ€Π°ΠΆΠ°ΡŽΡ‰ΠΈΠ΅ ваш ΡΡ‚ΠΈΠ»ΡŒ ΠΈ ΠΎΠ±Ρ€Π°Π· ΠΆΠΈΠ·Π½ΠΈ.

  8. Louishiz Avatar
    Louishiz

    НуТСн Π΄ΠΈΠ·Π°ΠΉΠ½? Π΄ΠΈΠ·Π°ΠΉΠ½ Π±ΡŽΡ€ΠΎ москва создаСм Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΎΠ½Π°Π»ΡŒΠ½Ρ‹Π΅ ΠΈ ΡΡ‚ΠΈΠ»ΡŒΠ½Ρ‹Π΅ пространства для ΠΊΠ²Π°Ρ€Ρ‚ΠΈΡ€, Π΄ΠΎΠΌΠΎΠ² ΠΈ офисов. ΠŸΠ»Π°Π½ΠΈΡ€ΠΎΠ²ΠΊΠΈ, 3D-Π²ΠΈΠ·ΡƒΠ°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ, ΠΏΠΎΠ΄Π±ΠΎΡ€ ΠΌΠ°Ρ‚Π΅Ρ€ΠΈΠ°Π»ΠΎΠ² ΠΈ авторский Π½Π°Π΄Π·ΠΎΡ€. Π˜Π½Π΄ΠΈΠ²ΠΈΠ΄ΡƒΠ°Π»ΡŒΠ½Ρ‹ΠΉ ΠΏΠΎΠ΄Ρ…ΠΎΠ΄, Ρ€Π΅Π°Π»ΡŒΠ½Ρ‹Π΅ сроки ΠΈ ΠΏΡ€ΠΎΠ΄ΡƒΠΌΠ°Π½Π½Ρ‹Π΅ Ρ€Π΅ΡˆΠ΅Π½ΠΈΡ ΠΏΠΎΠ΄ ваш Π±ΡŽΠ΄ΠΆΠ΅Ρ‚.

  9. Raymondcluse Avatar
    Raymondcluse

    Just now, I needed medication for a tooth infection and came across this source. It offers antibiotics without prescription fast. For fast relief, visit this link: Amoxicillin Express. Best prices.

  10. Raymondcluse Avatar
    Raymondcluse

    Lately, I wanted to get antibiotics for a toothache and stumbled upon this source. You can get effective treatment overnight. If you need meds, highly recommended: antibiotics express shipping. Get well soon.

Leave a Reply

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