How to use SendGrid for mail service in DigitalOcean

I have a droplet (virtual private server) configured in DigitalOcean (Ubuntu 22.x) and I have set up a domain and have even obtained an SSL certificate for the domain. DigitalOcean, in one of their correspondences with me, indicated that they have completely blocked SMTP in their service. They hinted that they have provided SendGrid for mail authentication and mail service needs of their clients. In this regard, I would like to know how to set up SendGrid for mail service for my droplet or vps in DigitalOcean. Thanks

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Site Moderator
Site Moderator badge
September 14, 2022

Hello @edidiongabasi-anwanane

You’ll need to use SendGrid details as SMTP HOST, Username and etc in your mail application. This information can be obtained from your SendGrid account.

SendGrid is also available as a one-click application from our marketplace. You can quickly spin up a droplet that is ready to use.

You can find more information here:


Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel