Skip to content

Commit

Permalink
feat: geolocation setter in sendgrid-python for GDPR compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
manisha1997 committed Nov 23, 2023
1 parent 7eb07f7 commit d760424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/dataresidency/set_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
to_email = To("[email protected]")
subject = "Sending with SendGrid is Fun"
content = Content("text/plain", "and easy to do anywhere, even with Python")
print(sg.client.host)
mail = Mail(from_email, to_email, subject, content)
sg.set_sendgrid_data_residency("global")
print(sg.client.host)
response = sg.client.mail.send.post(request_body=mail.get())
print(response)
print(response.status_code)
Expand Down

0 comments on commit d760424

Please sign in to comment.