Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sendgrid import SendGridAPIClient
- from sendgrid.helpers.mail import Mail
- message = Mail(
- from_email='send@gmail.com',
- to_emails='receive@yahoo.com',
- subject='Job offer',
- html_content='<strong>and easy to do anywhere, even with Python</strong>')
- sg = SendGridAPIClient('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')
- response = sg.send(message)
- print(response.status_code)
- print(response.body)
- print(response.headers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement