Comments (3)
This looks like it's probably the same bug as #34.
from sendgrid-django.
It is. I already made a workaround fix -which miss the possibility that reply-to email includes a name- in a forked repository of this one that includes inside _build_sg_mail
if email.reply_to:
if isinstance(email.reply_to, str):
mail.set_reply_to(Email(email.reply_to))
else:
mail.set_reply_to(Email(email.reply_to[0]))
Thing is Django asks as reply_to for a tuple/list while sendgrid only accepts one email as reply_to. Do you know if the email specification allows multiple emails in Reply-to header?
from sendgrid-django.
Our fix currently looks like this:
for k, v in email.extra_headers.items():
if k.lower() == "reply-to":
mail.set_reply_to(Email(v))
else:
mail.add_header({k: v})
if not mail.reply_to and hasattr(email, 'reply_to') and email.reply_to:
mail.set_reply_to(Email(email.reply_to[0]))
Based on the discussion in #34 I can't tell how close an actual fix here is. Happy to help/contribute a PR for this though.
from sendgrid-django.
Related Issues (20)
- Celery - Task handler raised error: MaybeEncodingError ? HOT 4
- EmailMultiAlternatives bcc not working HOT 5
- Issues When attaching file with email in sendgrid v3 APIs HOT 7
- Error sending attachments with mimetype text/* HOT 6
- Improve error message from sendgrid instead of just raise
- The sample code in the readme makes Sendgrid send back a 400. HOT 2
- The sample code in the readme uses a reserved header. HOT 2
- Lacking compatibility with lazy-translated strings
- Applying group data to Mail object HOT 5
- HTTPError not being caught HOT 3
- Possible to set send_at parameter?
- Getting a status code from Sendgrid ?
- Rendering images HOT 1
- Handlebar support HOT 3
- are you looking for maintainers ?
- Advice on how to achieve per-email-sent clicktracking toggle?
- Mail.send() UnauthorizedError HOT 1
- Unauthorized access issue?
- please upgrade the package for support new send-grid library HOT 3
- Version 4.2.0 - Email comes without template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sendgrid-django.