-
Notifications
You must be signed in to change notification settings - Fork 711
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
sendgrid.helpers.mail.mail.Mail.from_EmailMessage raises an error from within the sendgrid library #980
Labels
Comments
shwetha-manvinkurke
added
status: help wanted
requesting help from the community
type: bug
bug in the library
labels
Mar 18, 2021
@kaya-zekioglu This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog. |
same error. this method is totally broken |
here is an implementation that does work for simple cases (untested for complex cases)
python 3.11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Issue Summary
sendgrid.helpers.mail.mail.Mail.from_EmailMessage
raises an error from within the sendgrid library.For some context:
email
package.send_raw_email
method which accepts the result of invokingemail.message.EmailMessage.as_bytes()
and as such is compatible with my existing code which composes these emails.from_EmailMessage
classmethod appears to provide a similar bridge from python's nativeemail
to provider specific API parameter.Steps to Reproduce
email.message.EmailMessage
(https://docs.python.org/3/library/email.examples.html)sendgrid.helpers.mail.mail.Mail
using thefrom_EmailMessage
classmethodCode Snippet
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: