Disclaimer: I work in SendGrid.
In our example SMTP API, it is recommended to use the Swift_SmtpTransport library, which makes low-level socket connections to end systems. When configured using our example, Swift connects to our systems to deliver your message and does not require you to use SMTP.
Edit, June 20, 2014 for the new link: https://sendgrid.com/docs/Code_Examples/php.html
source share