Comments (5)
I'm actually getting the same error when passing in additional headers to the EmailMultiAlternatives
constructor like so: headers={"Reply-To": "[email protected]"}
.
I wish I could get more debugging information from the exception itself but it looks it's being raised incorrectly in python_http_client
, (line 161 should just be raise
to preserve the stack trace).
I'm going to dig into this more to see if I can discover what's going on
from sendgrid-django.
I actually ended up creating a new repo (https://github.com/sklarsa/django-sendgrid-v4) to support the sendgrid-python v4.0+ library. It should be compatible with both the EmailMessage
and EmailMultiAlternatives
django classes, and I'm currently writing out the test suite to guarantee that.
Unfortunately, it looks like this library isn't being maintained on a regular basis, seeing as how PR #58 is accepted(yet still open), and @pcraciunoiu has been left hanging on PR #55, which is a pretty critical PR that deals with breaking changes.
I don't like the idea of creating a new library for basically the same thing, but I am in need of a working sendgrid/django backend for my app. I'd like to hit other unaddressed issues from this repo as well (such as successfully sending emails with embedded images). I'd be happy to accept any help (including Issues and PRs), and am also very open to working with sendgrid and/or the maintainer of this repo to keep this functionality alive.
from sendgrid-django.
b'{"errors":[{"message":"Each email address in the personalization block should be unique between to, cc, and bcc. We found the first duplicate instance of [[email protected]] in the personalizations.0.bcc field.","field":"personalizations.0","help":"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.recipient-errors"}]}'
from sendgrid-django.
@sandeepsayone please take a look.
from sendgrid-django.
@andriisoldatenko thanks. Issues seems to be with to and bcc. I tried with unique emails in to and bcc and it worked. But not working when the to list is empty. I wanted to send emails to many email addresses without each of them knowing who else got the message (bcc) and don't want to give to email address.
from sendgrid-django.
Related Issues (20)
- Celery - Task handler raised error: MaybeEncodingError ? HOT 4
- 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.