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

  1. Jameshed Avatar

    Актуальные новости https://u-misti.chernivtsi.ua Черновцов на сегодня. Экономика, происшествия, культура, инфраструктура и социальные вопросы. Надёжные источники, регулярные обновления и важная информация для жителей города.

  2. JefferyAcark Avatar

    Винница онлайн https://u-misti.vinnica.ua последние новости и городская хроника. Главные события, заявления официальных лиц, общественные темы и изменения в жизни города в удобном формате.

  3. Larryjaf Avatar

    Новости Днепра https://u-misti.dp.ua сегодня — актуальные события города, происшествия, экономика, политика и общественная жизнь. Оперативные обновления, важные решения властей и главные темы дня для жителей и гостей города.

  4. Dwightpance Avatar

    Городской портал https://u-misti.cherkasy.ua Черкасс — свежие новости, события, происшествия, экономика и общественная жизнь. Актуальные обзоры, городская хроника и полезная информация для жителей и гостей города.

  5. JamesFUS Avatar
    JamesFUS

    To be honest, I just found a trusted website for cheap meds. If you are tired of high prices and need generic drugs, this store is the best option. No prescription needed and very reliable. Link is here: https://pharm.mex.com/#. Many thanks.

  6. JesusAceta Avatar
    JesusAceta

    риобет казино играть https://riobetcasino-money.ru

  7. organicgrunt 775 Avatar

    Поставляем грунт https://organicgrunt.ru торф и чернозем с доставкой по Москве и Московской области. Подходит для посадок, благоустройства и озеленения. Качественные смеси, оперативная логистика и удобные условия для частных и коммерческих клиентов.

  8. Carroljew Avatar
    Carroljew

    Greetings, Lately discovered a trusted resource for affordable pills. If you want to save money and want affordable prescriptions, Pharm Mex is the best option. Fast shipping and very reliable. Check it out: Pharm Mex. Appreciate it.

  9. melbet 398 Avatar

    connexion officielle melbet melbet telecharger

  10. Arthursleby Avatar
    Arthursleby

    To be honest, I just stumbled upon a useful source from India to save on Rx. For those looking for medicines from India safely, IndiaPharm is worth checking. It has lowest prices guaranteed. More info here: India Pharm Store. Cheers.

  11. Terryobsen Avatar
    Terryobsen

    joycasino регистрация joycasino промокод

  12. SteveTem Avatar
    SteveTem

    Op zoek naar een casino? WinnItt biedt online gokkasten en live games. Het biedt snel inloggen, eenvoudige navigatie, moderne speloplossingen en stabiele prestaties op zowel computers als mobiele apparaten.

  13. JamesFUS Avatar
    JamesFUS

    Hello, I just discovered an amazing online drugstore for cheap meds. If you need ED meds safely, this site is the best place. You get wholesale rates worldwide. Take a look: visit website. Cheers.

  14. EdwardDuefe Avatar
    EdwardDuefe

    продажа 1 квартиры сочи жк светский лес сочи застройщик

  15. DavidTenty Avatar
    DavidTenty

    Hi all, I recently found an amazing Indian pharmacy to buy generics. If you want to buy medicines from India cheaply, this site is very reliable. You get fast shipping guaranteed. Visit here: this site. Best regards.

  16. Carroljew Avatar
    Carroljew

    Greetings, I just found a useful online drugstore to buy generics. For those looking for cheap antibiotics without prescription, this store is worth checking. It has wholesale rates guaranteed. Visit here: visit website. Hope it helps.

  17. Arthursleby Avatar
    Arthursleby

    To be honest, Just now found the best source from India for cheap meds. For those looking for generic pills cheaply, this store is the best place. It has wholesale rates guaranteed. Take a look: https://indiapharm.in.net/#. Best regards.

  18. EdwardDuefe Avatar
    EdwardDuefe

    трехкомнатная квартира сочи жк светский лес официальный сайт

  19. JamesFUS Avatar
    JamesFUS

    Hello everyone, Lately discovered an awesome resource for cheap meds. If you want to save money and need meds from Mexico, Pharm Mex is worth checking out. They ship to USA and secure. Check it out: mexican pharmacy online. Hope it helps.

  20. Edwardgoomi Avatar

    Жалюзи от производителя https://balkon-pavilion.ru изготовление, продажа и профессиональная установка. Большой выбор дизайнов, точные размеры, надёжная фурнитура и комфортный сервис для квартир и офисов.

  21. Robertabiff Avatar

    Производим пластиковые https://zavod-dimax.ru окна и выполняем профессиональную установку. Качественные материалы, точные размеры, быстрый монтаж и гарантийное обслуживание для комфорта и уюта в помещении.

  22. Melvinjen Avatar

    Изделия из пластмасс https://ftk-plastik.ru собственного производства. Продажа оптом и в розницу, широкий ассортимент, надёжные материалы и стабильные сроки. Выполняем заказы любой сложности по техническому заданию клиента.

  23. Jamescib Avatar

    Производство оборудования https://repaircom.ru с предварительной разработкой и адаптацией под требования клиента. Качественные материалы, точные расчёты, соблюдение сроков и техническая поддержка.

  24. Ricardodor Avatar
    Ricardodor

    Herkese merhaba, bu site oyuncular? icin onemli bir duyuru yapmak istiyorum. Malum site adresini tekrar guncelledi. Giris hatas? varsa endise etmeyin. Cal?san Vaycasino giris adresi art?k asag?dad?r: Vaycasino Bu link uzerinden dogrudan hesab?n?za erisebilirsiniz. Lisansl? bahis deneyimi surdurmek icin Vaycasino tercih edebilirsiniz. Herkese bol kazanclar temenni ederim.

  25. Anya153et Avatar

    Hello guys!
    I came across a 153 great resource that I think you should dive into.
    This tool is packed with a lot of useful information that you might find helpful.
    It has everything you could possibly need, so be sure to give it a visit!
    https://www.informationng.com/2022/10/how-to-learn-to-say-no-five-simple-steps.html

    And remember not to overlook, guys, that a person constantly may within this particular piece find responses to address your most tangled queries. The authors tried — present the complete content via the very easy-to-grasp method.

  26. Antionewhiny Avatar
    Antionewhiny

    Matbet TV güncel linki lazımsa doğru yerdesiniz. Sorunsuz için tıkla: https://matbet.jp.net/# Yüksek oranlar burada. Arkadaşlar, Matbet son linki açıklandı.

  27. WhitneyWed Avatar
    WhitneyWed

    Szukasz kasyna? kasyno online w Polsce: wybor najlepszych stron do gry. Licencjonowane platformy, popularne sloty i kasyna na zywo, wygodne metody platnosci, uczciwe warunki i aktualne oferty.

  28. HerbertMox Avatar
    HerbertMox

    Grasz w kasynie? Kasyno internetowe w Polsce to najlepsze miejsca do gry w latach 2025–2026. Zaufane strony, sloty i gry na zywo, przejrzyste warunki, wygodne wplaty i wyplaty.

  29. blin-na-shtangy 871 Avatar
    blin-na-shtangy 871

    Ищешь блины для штанки? блины на штангу и гантели для эффективных силовых тренировок. Чугунные и резиновые диски, разные веса, долговечность и удобство использования. Решение для новичков и опытных спортсменов.

  30. TimothyKef Avatar
    TimothyKef

    Herkese merhaba, Casibom üyeleri için önemli bir duyuru yapmak istiyorum. Herkesin bildiği üzere Casibom adresini erişim kısıtlaması nedeniyle yine değiştirdi. Giriş sorunu yaşıyorsanız link aşağıda. Son siteye erişim adresi artık burada Casibom Bonus Bu link üzerinden vpn kullanmadan hesabınıza erişebilirsiniz. Ek olarak kayıt olanlara sunulan freespin kampanyalarını da inceleyin. Lisanslı slot keyfi için Casibom doğru adres. Tüm forum üyelerine bol kazançlar dilerim.

  31. DavidSab Avatar
    DavidSab

    Grandpashabet giriş adresi arıyorsanız işte burada. Sorunsuz erişim için Grandpashabet Üyelik Yüksek oranlar bu sitede.

  32. Ricardodor Avatar
    Ricardodor

    Gencler, Grandpashabet Casino yeni adresi belli oldu. Adresi bulamayanlar su linkten devam edebilir Grandpashabet Guvenilir mi

  33. Georgebig Avatar
    Georgebig

    Matbet TV guncel adresi laz?msa dogru yerdesiniz. H?zl? icin: Matbet Uyelik Yuksek oranlar bu sitede. Arkadaslar, Matbet bahis son linki belli oldu.

  34. Antionewhiny Avatar
    Antionewhiny

    Herkese merhaba, bu popüler site kullanıcıları adına kısa bir paylaşım yapmak istiyorum. Herkesin bildiği üzere Casibom adresini erişim kısıtlaması nedeniyle yine değiştirdi. Siteye ulaşım hatası varsa çözüm burada. Son Casibom giriş linki şu an aşağıdadır https://casibom.mex.com/# Paylaştığım bağlantı ile doğrudan siteye erişebilirsiniz. Ayrıca yeni üyelere verilen hoşgeldin bonusu fırsatlarını da kaçırmayın. Lisanslı casino keyfi için Casibom doğru adres. Herkese bol kazançlar dilerim.

  35. Phillipbrory Avatar
    Phillipbrory

    Только лучшие материалы: https://dzen.ru/a/aVz0p7K_jnndhvSs

  36. Ricardodor Avatar
    Ricardodor

    Arkadaslar, Grandpashabet yeni adresi belli oldu. Adresi bulamayanlar buradan devam edebilir Grandpashabet Bonus

  37. DavidSab Avatar
    DavidSab

    Dostlar selam, bu site kullanıcıları adına kısa bir bilgilendirme yapmak istiyorum. Malum site adresini yine değiştirdi. Giriş sorunu yaşıyorsanız panik yapmayın. Güncel Vaycasino giriş adresi artık aşağıdadır: Vaycasino Üyelik Paylaştığım bağlantı üzerinden vpn kullanmadan siteye girebilirsiniz. Güvenilir bahis deneyimi için Vaycasino doğru adres. Herkese bol şans dilerim.

  38. TimothyKef Avatar
    TimothyKef

    Grandpasha güncel adresi lazımsa işte burada. Hızlı erişim için tıkla Grandpashabet Twitter Deneme bonusu bu sitede.

  39. Philiptiz Avatar
    Philiptiz

    Нужен проектор? projector24 большой выбор моделей для дома, офиса и бизнеса. Проекторы для кино, презентаций и обучения, официальная гарантия, консультации специалистов, гарантия качества и удобные условия покупки.

  40. Ricardodor Avatar
    Ricardodor

    Herkese selam, bu populer site kullan?c?lar? icin k?sa bir bilgilendirme yapmak istiyorum. Bildiginiz gibi site giris linkini BTK engeli yuzunden tekrar tas?d?. Erisim hatas? varsa dogru yerdesiniz. Son siteye erisim adresi art?k paylas?yorum Casibom Guncel Giris Paylast?g?m baglant? uzerinden vpn kullanmadan hesab?n?za girebilirsiniz. Ek olarak kay?t olanlara sunulan yat?r?m bonusu kampanyalar?n? mutlaka inceleyin. Guvenilir bahis keyfi surdurmek icin Casibom tercih edebilirsiniz. Tum forum uyelerine bol kazanclar dilerim.

  41. Antionewhiny Avatar
    Antionewhiny

    Bahis severler selam, Casibom oyuncuları adına önemli bir duyuru yapmak istiyorum. Bildiğiniz gibi site giriş linkini BTK engeli yüzünden yine güncelledi. Siteye ulaşım problemi yaşıyorsanız çözüm burada. Resmi siteye erişim bağlantısı şu an aşağıdadır Buraya Tıkla Bu link ile doğrudan hesabınıza girebilirsiniz. Ek olarak kayıt olanlara verilen yatırım bonusu kampanyalarını da kaçırmayın. Lisanslı casino deneyimi sürdürmek için Casibom doğru adres. Herkese bol şans dilerim.

  42. DavidSab Avatar
    DavidSab

    Matbet TV giriş linki lazımsa doğru yerdesiniz. Hızlı için tıkla: Buraya Tıkla Canlı maçlar burada. Arkadaşlar, Matbet yeni adresi belli oldu.

  43. Georgebig Avatar
    Georgebig

    Dostlar selam, bu site oyuncular? icin k?sa bir bilgilendirme paylas?yorum. Bildiginiz gibi site adresini tekrar guncelledi. Erisim sorunu yas?yorsan?z endise etmeyin. Guncel siteye erisim adresi su an asag?dad?r: Vay Casino Giris Bu link ile dogrudan siteye girebilirsiniz. Lisansl? bahis keyfi icin Vay Casino tercih edebilirsiniz. Herkese bol sans dilerim.

  44. TimothyKef Avatar
    TimothyKef

    Arkadaşlar selam, Vay Casino oyuncuları için önemli bir bilgilendirme yapmak istiyorum. Bildiğiniz gibi Vaycasino giriş linkini tekrar değiştirdi. Erişim hatası yaşıyorsanız panik yapmayın. Yeni Vaycasino giriş adresi şu an burada: Vay Casino Güvenilir mi Bu link üzerinden doğrudan hesabınıza erişebilirsiniz. Lisanslı casino deneyimi için Vaycasino tercih edebilirsiniz. Herkese bol şans dilerim.

  45. containers Avatar

    Thanks – Enjoyed this article, can I set it up so I receive an email every time you make a fresh post?

Leave a Reply

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