Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion use_cases/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ import os
from sendgrid.helpers.mail import (From, To, PlainTextContent, HtmlContent, Mail)

def handler(event, context):
sendgrid_client = sendgrid.SendGridAPIClient(api_key=os.environ.get('SENDGRID_API_KEY'))
sendgrid_client = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY'))
from_email = From("test@example.com")
to_email = To("test@example.com")
subject = "Sending with Twilio SendGrid is Fun"
Expand Down
2 changes: 1 addition & 1 deletion use_cases/error_handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ There are also email specific exceptions located [here](https://github.com/sendg
from sendgrid.helpers.mail import (From, To, Subject, PlainTextContent, HtmlContent, Mail)
from python_http_client import exceptions

sendgrid_client = SendGridAPIClient(api_key=os.environ.get('SENDGRID_API_KEY'))
sendgrid_client = SendGridAPIClient(os.environ.get('SENDGRID_API_KEY'))
from_email = From("dx@sendgrid.com")
to_email = To("elmer.thomas@sendgrid.com")
subject = Subject("Sending with Twilio SendGrid is Fun")
Expand Down