We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.add_header() cannot be used because python raises a TypeError exception.
mail = Mail( Email(from_email), subject, Email(to_emails), Content('text/html', message) )
mail.add_header( {'Reply-To' : 'user@server.ext, user@server.ext'} )
response = sg.client.mail.send.post(request_body=mail.get())
File "mail.py", line 63, in get
headers.update(key**.get()**)
TypeError: get expected at least 1 arguments, got 0
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' : 'user@server.ext, user@server.ext'} )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