Does Sendgrid web api work with Django on Digitalocean?

I have integrated sendgrid’s web api into my Django web app. However email can only be sent on the development server on my local machine. If I try to send an email on the web app on my droplet, then no email is sent.

The code being run on the development server is exactly the same as what is being run on my droplet.

Any hints or tips would be really appreciated.


Submit an 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.


SendGrid does indeed work, though like many providers of transactional e-mail solutions, if this is a newer account with them, they do impose some limits (unless you’re paying). Typically, this is limited to slowing down the actual send rate, which means it could be 5-30 minutes before the e-mail that you just sent is actually received by the other party (I ran in to this about a week ago, so I can confirm this).

Likewise, if you’re trying to send e-mail through Port 25 and this is a new DigitalOcean account, you may be getting limited as DigitalOcean does this on newer accounts to prevent SPAM.