---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/sendgrid/for-developers/sending-email/smtp-php-code-example#article
headline: SMTP PHP Code Example
description: Utilize SendGrid's PHP SMTPAPI library for comprehensive integration. Complete GitHub documented guide for efficient coding and improved system performance.
url: https://www.twilio.com/docs/sendgrid/for-developers/sending-email/smtp-php-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 PHP Code Example

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