Report this

What is the reason for this report?

All my emails sent ends in Spam on Gmail

Posted on November 21, 2022

All the emails I’m sending either from php using SMTP with TLS or from the web email client, end in Spam on Google Mail no matter what I do.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Eyy @1ecea24df6134a57a41373199e858,

Try to verify if your server’s ip address has been added to Spam Blacklist? You could check out in DNS Checker.

Let me know how it goes,

Sergio Turpín

Hi @1ecea24df6134a57a41373199e858,

First, make sure you are using port 465 or 587 for Sending messages auth and authenticating with a mail account associated with your domain.

Next, you’ll need to configure SPF, DMARC, and DKIM records on your Droplet.

DMARC

https://www.digitalocean.com/community/questions/how-to-configure-dmarc

SPF https://www.digitalocean.com/community/tutorials/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability

DKIM For DKIM there are multiple articles you can read on how to add to your Server/Droplet as it’s a standard process.

Once you have these 3 records, you’ll need to check if your IP is on any blacklist server. There are multiple checkers for your IP address, I tend to use https://mxtoolbox.com/blacklists.aspx

Hi there,

In addition to what has already been mentioned, I could suggest sending an email to the following site:

https://www.mail-tester.com/

This will generate a report for you on why your emails might be ending up in spam.

Hope that this helps!

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.