adding send command

This commit is contained in:
muassif 2021-08-25 20:40:57 +04:00 committed by GitHub
parent de5c00ce15
commit 33d6a2f6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,6 @@ def handle_storage_event(event, context):
mail = Mail(from_email, to_emails, subject, content)
sg = SendGridAPIClient()
response = sg.send(mail)
print(response.status_code) # for logging purpose
print(response.headers)