Ask HN: I'm sending emails from my website to my Gmail but nothing arrive

2 points by averageValentin ↗ HN
To be more precise, I have a landing page (https://charge.ovh/landing) and it is impossible for me to receive on my Gmail account the email that should be sent by the website. However, on my ProtonMail account the email arrives at its destination.

Do you have any idea how to solve this problem?

Best -- Valentin

6 comments

[ 1.6 ms ] story [ 21.1 ms ] thread
This is generally caused from your SPF record. When a mail server isn’t included in the SPF record as allowed to send on behalf of your domain, Google and Microsoft have a tendency to black hole the emails without giving you any indication it’s happening. Get the IP of the email server your website is using, add it into the SPF record, and you should be golden.
Thank you very much for your answer. I have set up the SPF record and the DKIM. Everything is fine. I hope tomorrow my emails will no longer arrive in the spam folder.