We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a53dc9 commit 197b618Copy full SHA for 197b618
README.md
@@ -95,10 +95,10 @@ from sendgrid.helpers.mail import *
95
96
sg = sendgrid.SendGridAPIClient(api_key=os.environ.get('SENDGRID_API_KEY'))
97
from_email = Email("test@example.com")
98
-to_email = Email("test@example.com")
+to_email = To("test@example.com")
99
subject = "Sending with SendGrid is Fun"
100
content = Content("text/plain", "and easy to do anywhere, even with Python")
101
-mail = Mail(from_email, subject, to_email, content)
+mail = Mail(from_email, to_email, subject, content)
102
response = sg.client.mail.send.post(request_body=mail.get())
103
print(response.status_code)
104
print(response.body)
0 commit comments