I host a website on my DigitalOcean server and I want to send automated emails. But the SMTP lock to be blocked by DigitalOcean. Let me know how to send email
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.
Hey Giovanni 👋
Just a heads up — DigitalOcean blocks SMTP port 25 by defaul on all new Droplets to help prevent spam and abuse. Ports 465 and 587 are also often restricted, so even if you’re trying to set up SMTP auth, it might not work out of the box:
That said, DigitalOcean recommends using a third-party email service like SendGrid, which you can set up easily via their Marketplace 1-Click App. These services handle things like IP reputation and deliverability much better than a self-hosted mail server.
If you really need to send email directly from your Droplet, you could try reaching out to DigitalOcean support and ask if they can lift the block — though in many cases, that’s not possible: 👉 https://do.co/support
Hope that helps!
- Bobby