-
Notifications
You must be signed in to change notification settings - Fork 389
Days 65-68 Heroku - Sendgrid changes #36
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
Comments
Here's the sendgrid docs that I ended up looking at: https://github.com/sendgrid/sendgrid-python/blob/master/use_cases/send_a_single_email_to_a_single_recipient.md |
Thanks @shutteritch I will look tomorrow. |
Ah seems @hobojoe1848's lesson actually. I see he pinned it to We upgraded back in December on the platform and struggled with some breaking changes in 6.1.0. Looking at our changes then:
So yeah I think it would be useful to include a script for sendgrid 6.x as that is the default now. |
@shutteritch we can include one, but as you seem to have one ready, you could also contribute by opening a PR against this repo. Thanks |
Seems this was fixed via PR. |
Hello!
I had two errors when trying to send email with sendgrid.
The first seemed to relate to the order of the variables in which I had to change from:
mail = Mail(from_email, subject, to_email, content)
to:
mail = Mail(from_email, to_email, subject, content)
And then the second referred to the response which I had to change from:
response = sg.client.mail.send.post(request_body=mail.get())
to:
response = sg.send(mail)
I also discovered that I didn't need to import Email & Content so the following worked for me:
The text was updated successfully, but these errors were encountered: