Email not working in App Platform

Posted October 26, 2020 1.3k views
EmailDigitalOcean App Platform

I have set up a new APP using the APP Platform. However, emails are not working. Our app has a module where users need to register and the mails are not reaching while doing tests. Has anyone else faced this and what was the solution you deployed - if any?

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.

Submit an Answer
4 answers


Due to spam email issues we block SMTP traffic on port 25. We support connecting to SMTP servers on port 465 and 587 for authenticated mail sending. We highly recommend using a service such as MailGun or SendGrid for emails within you app.

We have tried both 465 and 587. Both don’t work either. We use Sendgrid.

I’ve hosted the same app in our internal server and the mail sending with same code works fine.

Hi Steve,

Did you find any solution to this. I also same issue and using App Platform.


  • I moved out of the APP platform and took a droplet within digital ocean and email sending worked without any change in the code. However I had to take an intermediate platform such as deployhq to do code deployment between Github and DigitalOcean.

I am basically doing email verification that uses smtp i knw smtp ports are blocked on digital ocean. My code works on local host but not on production.