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

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

  1. www.binance.info Pag-sign up Avatar

    Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://www.binance.com/es/register?ref=RQUR4BEO

  2. Edwardtom Avatar
    Edwardtom

    My Mexican Pharmacy: My Mexican Pharmacy – mexican rx

  3. Taylorsmump Avatar
    Taylorsmump
  4. DiegoMog Avatar
    DiegoMog

    dog prescriptions online: online pet pharmacy – dog medication online

  5. Edwardtom Avatar
    Edwardtom

    pharmacia mexico: My Mexican Pharmacy – My Mexican Pharmacy

  6. Taylorsmump Avatar
    Taylorsmump
  7. Larryfig Avatar
    Larryfig

    pet med VetFree Meds discount pet meds

  8. MichaelKek Avatar
    MichaelKek
  9. Edwardtom Avatar
    Edwardtom

    discount pet meds: VetFree Meds – dog prescriptions online

  10. Taylorsmump Avatar
    Taylorsmump

    https://vetfreemeds.com/# pet drugs online

  11. DiegoMog Avatar
    DiegoMog

    online pet pharmacy: discount pet meds – discount pet meds

  12. MichaelKek Avatar
    MichaelKek

    http://mymexicanpharmacy.com/# los algodones pharmacy online

  13. Edwardtom Avatar
    Edwardtom

    best canadian pharmacy: canada pharmacy world – CertiCanPharmacy

  14. Taylorsmump Avatar
    Taylorsmump

    https://mymexicanpharmacy.com/# mexican pharmacy menu

  15. MichaelKek Avatar
    MichaelKek
  16. Edwardtom Avatar
    Edwardtom

    п»їdog medication online: VetFree Meds – pet pharmacy

  17. DiegoMog Avatar
    DiegoMog

    mexico medication: mexican farmacia – online mexican pharmacies

  18. Taylorsmump Avatar
    Taylorsmump

    https://mymexicanpharmacy.com/# My Mexican Pharmacy

  19. MichaelKek Avatar
    MichaelKek

    http://vetfreemeds.com/# pet meds for dogs

  20. Edwardtom Avatar
    Edwardtom

    My Mexican Pharmacy: My Mexican Pharmacy – My Mexican Pharmacy

  21. Taylorsmump Avatar
    Taylorsmump

    http://mymexicanpharmacy.com/# purple pharmacy mexico

  22. DiegoMog Avatar
    DiegoMog

    CertiCanPharmacy: CertiCanPharmacy – CertiCanPharmacy

  23. MichaelKek Avatar
    MichaelKek

    http://vetfreemeds.com/# pet meds for dogs

  24. Edwardtom Avatar
    Edwardtom

    My Mexican Pharmacy: My Mexican Pharmacy – pharmacy in mexico online

  25. Taylorsmump Avatar
    Taylorsmump
  26. MichaelKek Avatar
    MichaelKek

    http://vetfreemeds.com/# pet prescriptions online

  27. Edwardtom Avatar
    Edwardtom

    pharmacy canadian: trustworthy canadian pharmacy – CertiCanPharmacy

  28. DiegoMog Avatar
    DiegoMog

    vet pharmacy online: pet med – dog prescriptions online

  29. Taylorsmump Avatar
    Taylorsmump
  30. MichaelKek Avatar
    MichaelKek

    https://certicanpharmacy.shop/# canadian pharmacy meds

  31. Edwardtom Avatar
    Edwardtom

    pet pharmacy: VetFree Meds – best pet rx

  32. Taylorsmump Avatar
    Taylorsmump

    https://certicanpharmacy.com/# canadian pharmacy no rx needed

  33. Larryfig Avatar
    Larryfig

    My Mexican Pharmacy My Mexican Pharmacy My Mexican Pharmacy

  34. MichaelKek Avatar
    MichaelKek
  35. DiegoMog Avatar
    DiegoMog

    vet pharmacy online: VetFree Meds – pet drugs online

  36. Edwardtom Avatar
    Edwardtom

    pet prescriptions online: pet pharmacy online – online pet pharmacy

  37. Taylorsmump Avatar
    Taylorsmump

    http://certicanpharmacy.com/# canadianpharmacymeds

  38. Edwardtom Avatar
    Edwardtom

    dog prescriptions online: pet meds for dogs – best pet rx

  39. Taylorsmump Avatar
    Taylorsmump
  40. DiegoMog Avatar
    DiegoMog

    canadian pharmacy price checker: CertiCanPharmacy – pharmacy in canada

  41. Edwardtom Avatar
    Edwardtom

    My Mexican Pharmacy: My Mexican Pharmacy – My Mexican Pharmacy

  42. MichaelKek Avatar
    MichaelKek

    https://vetfreemeds.com/# pet pharmacy online

  43. Larryfig Avatar
    Larryfig

    My Mexican Pharmacy My Mexican Pharmacy reputable mexican pharmacy

  44. Taylorsmump Avatar
    Taylorsmump

    http://certicanpharmacy.com/# canada rx pharmacy world

  45. Edwardtom Avatar
    Edwardtom

    reliable canadian pharmacy reviews: canadian pharmacy uk delivery – canadian online pharmacy reviews

Leave a Reply

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