Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Zend framework mail transport that relies on sendgrid web api
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
library/Application/Mail/Transport
tests
.gitignore
.travis.yml
README.md
composer.json

README.md

Zend_Mail_Transport_SendGrid

Zend framework mail transport that relies on sendgrid web api (http://docs.sendgrid.com/documentation/api/web-api/mail/)

The project requires:

  • PHP >= 5.3
  • Zend Framework 1.11+
  • Sendgrid Account

Quick Example:

<?php

        $mail = new Zend_Mail('utf-8');
        $transport = new Application_Mail_Transport_Sendgrid(
            array(
              'username' => SENDGRID_USERNAME,
              'password' => SENDGRID_PASSWORD
            )
        );

        $mail->setBodyText('Lorem Ipsum Dolo Sit Amet');
        $mail->setBodyHtml('Lorem Ipsum Dolo <b>Sit Amet</b>');
        $mail->setFrom('john@example.com', 'John Doe');
        $mail->addTo('jane@example.com', 'Jane Doe');
        $mail->setSubject('Lorem Ipsum Dolo Sit Amet');

        $message = $mail->send($transport);

?>

Build Status

Something went wrong with that request. Please try again.