You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, mail.add_headers() can only accept an Header object. However,
many people tend to use {"header": "value"} style dictionaries. This adds
support for that use case
Resolvessendgrid#230
Issue Summary
.add_header() cannot be used because python raises a TypeError exception.
Steps to Reproduce
mail = Mail( Email(from_email), subject, Email(to_emails), Content('text/html', message) )
mail.add_header( {'Reply-To' : '[email protected], [email protected]'} )
response = sg.client.mail.send.post(request_body=mail.get())
Stack Trace
File "mail.py", line 63, in get
TypeError: get expected at least 1 arguments, got 0
The text was updated successfully, but these errors were encountered: