Advertisement
Md_Zahid_Hassan

Json Error

Oct 10th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1.  
  2. from sendgrid import SendGridAPIClient
  3. from sendgrid.helpers.mail import Mail
  4.  
  5. message = Mail(
  6. from_email='send@gmail.com',
  7. to_emails='receive@yahoo.com',
  8. subject='Job offer',
  9. html_content='<strong>and easy to do anywhere, even with Python</strong>')
  10.  
  11. sg = SendGridAPIClient('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')
  12. response = sg.send(message)
  13.  
  14. print(response.status_code)
  15. print(response.body)
  16. print(response.headers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement