Skip to content

Commit 197b618

Browse files
docs: fix code snippet in README (#878)
1 parent 8a53dc9 commit 197b618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ from sendgrid.helpers.mail import *
9595

9696
sg = sendgrid.SendGridAPIClient(api_key=os.environ.get('SENDGRID_API_KEY'))
9797
from_email = Email("[email protected]")
98-
to_email = Email("[email protected]")
98+
to_email = To("[email protected]")
9999
subject = "Sending with SendGrid is Fun"
100100
content = Content("text/plain", "and easy to do anywhere, even with Python")
101-
mail = Mail(from_email, subject, to_email, content)
101+
mail = Mail(from_email, to_email, subject, content)
102102
response = sg.client.mail.send.post(request_body=mail.get())
103103
print(response.status_code)
104104
print(response.body)

0 commit comments

Comments
 (0)