Giter VIP home page Giter VIP logo

Comments (5)

sklarsa avatar sklarsa commented on July 23, 2024

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.

sklarsa avatar sklarsa commented on July 23, 2024

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.

andriisoldatenko avatar andriisoldatenko commented on July 23, 2024
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.

andriisoldatenko avatar andriisoldatenko commented on July 23, 2024

@sandeepsayone please take a look.

from sendgrid-django.

sandeepsayone avatar sandeepsayone commented on July 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.