Sendgrid Logo

Sendgrid is a transactional email service that is used by several large companies to handle delivery of messages. Zapier blog has a great explanation of what transactional emails are and why you should care about them (especially if you are doing eCommerce).

This module works with Drupal mail system to offer a flexible way of sending emails out of Drupal. Emails are sent through SendGrid's cloud-based email delivery services by using their Web API (RESTful) that allows for quick and fast email transactions out of a Drupal website instead of slow SMTP transactions. Sendgrid is a very reliable transactional email service with some market-leading statistics for inbox penetration and a very advanced API. You can read more about SendGrid here.

To use SendGrid's services by this module, you need to have an account with their service. SendGrid generously offers a free account that allows you to send up to 100 emails per day for free. Please see their website to confirm the details of their free trial and service offerings.

Optional:
Configure Cron to get more reliability for email sending in some error cases (some failed messages will be added to cron queue for later delivery), see more about cron.

Sendgrid API V3

This module is developing a new release, 2.0, that will be using the V3 API. Development is actively taking place in the 8.x-2.x branch.

Library Information

Required API Library: https://github.com/taz77/sendgrid-php-ng

Extending functionality (Hooks)

Check sendgrid_integration.api.php

Other modules

One other module exists for Sendgrid, Sendgrid API module.

How does this module differ?

Sendgrid Integration module uses Guzzle supplied by Drupal Core for the HTTP client. With the introduction of Drupal8, came Guzzle included in the core. Years ago Sendgrid used Guzzle for their official library and Sendgrid Integration used the official library. A decision was made by the developers at Sendgrid to write another HTTP client rather than use Guzzle. To eliminate redundancy and requirements creep we choose to fork the Sendgrid library and maintain it on our own that is based on Guzzle to fit well within the Drupal ecosystem.

This project is not affiliated with SendGrid, Inc and is not funded in any way by Sendgrid, Inc.

The library being used for this module is maintained on Github as a fork of the official Sendgrid PHP library. The library sendgrid-php-ng makes use of Guzzle 6.x.

Drupal 7 PHP Compatibiltiy

While Drupal 7 officially has a minimum PHP version of 5.2.5, this module only supports version 5.5 or newer.

Supporting organizations: 
Funding for development

Project information

Releases