django-sendgrid-v5 | EmailBackend compatible with sendgrid-python v5 | Email library
kandi X-RAY | django-sendgrid-v5 Summary
kandi X-RAY | django-sendgrid-v5 Summary
An implementation of Django's EmailBackend compatible with sendgrid-python v5+
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Send email messages
- Builds Mail object
- Build a Personalization object
- Create Attachment object
- Create a Personalization object from a dict
- Write emails to the output stream
- Write a message to a given stream
- Parse an email address
- Check if a message is a transaction template
django-sendgrid-v5 Key Features
django-sendgrid-v5 Examples and Code Snippets
Community Discussions
Trending Discussions on django-sendgrid-v5
QUESTION
I'm using the django-sendgrid-v5 package to send mails in django. Everything works fine but the mail never reaches to the inbox, neither spam. Here are my current configurations:
.env
file:
ANSWER
Answered 2020-Jan-07 at 12:10I finally worked it through. The problem was Sender Authentication, Which By the way is not very elaborate in the documentation.
After generating an API key you're supposed to add some CNAME records to your DNS service provider for sendgrid to be authenticated to send emails.
With a lot of help from This medium article
So the problem was not on the code.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install django-sendgrid-v5
In your project's settings.py script: Set EMAIL_BACKEND = "sendgrid_backend.SendgridBackend" Set the SENDGRID_API_KEY in settings.py to your api key that was provided to you by sendgrid. SENDGRID_API_KEY = os.environ["SENDGRID_API_KEY"]
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page