-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.0.2 fails to send to list of lists #778
Comments
Hi @plowman! Thanks for reporting this! Yes, that error is confusing in this context and I'll leave this open for a fix.
Would a better error do the trick or are you also wanting to be able to pass a list of lists? With Best Regards, Elmer |
Hey @thinkingserious thanks for the fast reply! I don't have a strong preference on the fix. Throwing an error when I call |
Is this still available? I have a couple of follow-up questions that are a bit beyond the scope of this issue, but may be worth taking a look at separately: It looks like there may be some similar issues with parsing a list of dictionaries. Should this be fixed, too? Or is throwing a better error still an acceptable fix? Similar parsing issues re:lists/dictionaries exist for adding BCC and CC parameters as well, but the Mail object doesn't take cc/bcc email parameters? What is the rationale for this? Thanks :) |
Going to look into this one |
Issue Summary
Something I ran into while upgrading to 6.0.2 just now is that when sending a
Mail
object with ato_emails=
parameter that is a list of[[email, name]]
, a confusing exception is thrown while if it's a list of[(email, name)]
, it succeeds.This snippet fails
The exception thrown is
ValueError: Please use a To, Cc or Bcc object.
This snippet succeeds
Steps to Reproduce
Expected
Technical details:
The text was updated successfully, but these errors were encountered: