---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/sendgrid/for-developers/sending-email/smtp-python-code-example#article
headline: SMTP Python Code Example
description: Integrate SendGrid with Python SMTPAPI library seamlessly. Comprehensive documentation recommended for efficient full system integration is accessible on GitHub.
url: https://www.twilio.com/docs/sendgrid/for-developers/sending-email/smtp-python-code-example
inLanguage: en
dateModified: 2024-04-24T20:56:51.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# SMTP Python Code Example

SendGrid recommends using our [Python SMTPAPI library](https://github.com/sendgrid/smtpapi-python), full documentation can be found on GitHub. Our [Python API library](https://github.com/sendgrid/sendgrid-python) allows you to fully integrate with SendGrid.
