How to integrate Sendgrid with Zend framework

Install send-grid transport using the following command.

After install follow one of these steps:

  1. Copy the contents file vendor/iyngaran/send-grid-transport/mail.global.php.dist and put it in your config/autoload/mail.global.php.
  2. If this file does not exists in your application, just copy the entire file and place into your config/autoload removing the .dist extension.

Then add your SendGrid API Key. To get your API Key, please visit

And also add the test email from-email address, name and to-email address, name.

After all, you must register SendGridTransport module in your config/modules.config.php.

Testing

Go to this Url – /send-grid-email to send a test email.

How to use it ?

For example, in a controller.

Be the first to comment

Leave a Reply

Your email address will not be published.


*


*