By Marcelo Mata
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.
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.