DEV Community

Cover image for What are your techniques to prevent your html email from ending into spams ?
Louis
Louis

Posted on

What are your techniques to prevent your html email from ending into spams ?

Top comments (13)

Collapse
 
devdufutur profile image
Rudy Nappée

I don't send spams 😅

Collapse
 
androiduseronappledevice profile image
Louis

Nice one 😁

Collapse
 
thi3rry profile image
Thierry Poinot

Use email services like sendgrid or mandrill, use a domain well configured,
Send it from a trusted server,
No images in body, prefer text email with no more than 4 links.

I'm not an expert, but these are my rules to be sure to take a good start

Collapse
 
androiduseronappledevice profile image
Louis

I'm currently using NodeJS with sendgrid, but my email always end up in the gmail spam folder.
For testing purposes, I used my own gmail address as the sender, but it doesn't change anything.

Thank you for the images advice, I will try it.

Are your emails always end up in the inbox correctly ?

Thank you.

( Merci pour les conseils, c'est sympa de ta part (: )

Collapse
 
thi3rry profile image
Thierry Poinot

Not always, but when it's happened, images are the first point that I check.
Maybe gmail filter your emails because you actually uses you email as sender.
With sendgrid a simple domain can be configured.
Maybe your email is not well formatted, check html syntax, or it is similar to a spam.
Or you just mark one of your testing email as spam and your inbox remember it.
For testing it's often that testing mail are flag spam.

Thread Thread
 
androiduseronappledevice profile image
Louis

Thank you for the advices.

I'm testing everything out and will write a follow up after I tried every
solutions.

Collapse
 
polterguy profile image
Thomas Hansen

Check your authority in SendGrid. If you find out the reasons for this BTW, I would love to know ...

Thread Thread
 
androiduseronappledevice profile image
Louis

I will once I'm done with testing, can't guarantee it will work though.

But I will write a follow up :)

Collapse
 
thexdev profile image
M. Akbar Nugroho

Use a service like mailtrap for integration testing. They provide a feature to measure your email spam potential.

Collapse
 
androiduseronappledevice profile image
Louis

Great advice, thank you.

I already use mailtrap for integration, but never used it to check the spam potential.

I will try :)

Collapse
 
polterguy profile image
Thomas Hansen

We always do "double optin" before we start blasting. It might be obvious for most here, but I thought I'd mention it anyways ...

Collapse
 
androiduseronappledevice profile image
Louis

Well, I don't think I need double opt-in though.

The context is, I worked for a client as a freelancer with a friend. He wanted a simple landing page with a form for customers to contact him.

It's basically just an email sent by customers with the form on his website, directly into his inbox (which is a Gmail client).

Thank you for the advice anyway :)

Collapse
 
polterguy profile image
Thomas Hansen

Psst, reCAPTCHA - Believe me, you'll need it ... ;)