Skip to content

Commit

Permalink
Hello stupid sendgrid-python
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Dec 13, 2019
1 parent a55ffa8 commit 2481b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/email/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def send_smtp_mail(subject, to, body):

# send over SendGrid Web API
def send_api_mail(subject, to, body):
sg = sendgrid.SendGridAPIClient(apikey=os.getenv('SENDGRID_API_KEY'))
sg = sendgrid.SendGridAPIClient(os.getenv('SENDGRID_API_KEY'))
from_email = SGEmail('Grey Li <[email protected]>')
to_email = SGEmail(to)
content = Content("text/plain", body)
Expand Down

0 comments on commit 2481b77

Please sign in to comment.