SMTP PHP Code Example SendGrid recommends using our PHP SMTPAPI library, full documentation can be found on GitHub. Our PHP API library allows you to fully integrate with SendGrid. Rate this page: 1 2 3 4 5 Need some help? We all do sometimes. Get help now from the Twilio SendGrid Support Team. Running into a coding hurdle? Lean on the wisdom of the crowd by browsing the SendGrid tag on Stack Overflow or visiting Twilio's Stack Overflow Collective.