You can directly integrate Zend's mail module with SendGrid to use our SMTP servers for outgoing messages.
_25<?php_25require_once '$HOME/sendgrid/Zend/library/Zend/Mail.php';_25require_once '/$HOME/sendgrid/Zend/library/Zend/Mail/Transport/Smtp.php';_25_25$smtpServer = 'smtp.sendgrid.net';_25$username = 'username';_25$api_key = 'api_key';_25_25$config = array('ssl' => 'tls',_25'port' => '587',_25'auth' => 'login',_25'username' => $username,_25'api_key' => $api_key);_25_25$transport = new Zend_Mail_Transport_Smtp($smtpServer, $config);_25_25$mail = new Zend_Mail();_25_25$mail->setFrom('sendeexampexample@example.com', 'Some Sender');_25$mail->addTo('email@example.com','Some Recipient');_25$mail->setSubject('Test Subject');_25$mail->setBodyText('This is the text of the mail using Zend.');_25_25$mail->send($transport);_25?>
If you prefer a modular installation, then check out Jurian Sluiman's SlmMail project at GitHub.