PHPackages                             symfony/sendgrid-mailer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. symfony/sendgrid-mailer

ActiveSymfony-mailer-bridge[Mail &amp; Notifications](/categories/mail)

symfony/sendgrid-mailer
=======================

Symfony Sendgrid Mailer Bridge

v8.0.0(8mo ago)6811.0M—8.6%1115MITPHPPHP &gt;=8.4

Since Mar 30Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/symfony/sendgrid-mailer)[ Packagist](https://packagist.org/packages/symfony/sendgrid-mailer)[ Docs](https://symfony.com)[ Fund](https://symfony.com/sponsor)[ GitHub Sponsors](https://github.com/fabpot)[ RSS](/packages/symfony-sendgrid-mailer/feed)WikiDiscussions 8.1 Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (188)Used By (15)

Sendgrid Bridge
===============

[](#sendgrid-bridge)

Provides Sendgrid integration for Symfony Mailer.

Configuration example:

```
# SMTP
MAILER_DSN=sendgrid+smtp://KEY@default?region=REGION

# API
MAILER_DSN=sendgrid+api://KEY@default?region=REGION
```

where:

- `KEY` is your Sendgrid API Key
- `REGION` is Sendgrid selected region (default to global)

Webhook
-------

[](#webhook)

Create a route:

```
framework:
    webhook:
        routing:
            sendgrid:
                service: mailer.webhook.request_parser.sendgrid
                secret: '!SENDGRID_VALIDATION_SECRET!' # Leave blank if you don't want to use the signature validation
```

And a consume:

```
#[\Symfony\Component\RemoteEvent\Attribute\AsRemoteEventConsumer(name: 'sendgrid')]
class SendGridConsumer implements ConsumerInterface
{
    public function consume(RemoteEvent|MailerDeliveryEvent $event): void
    {
        // your code
    }
}
```

Suppression Groups
------------------

[](#suppression-groups)

Create an e-mail and add the `SuppressionGroupHeader`:

```
use Symfony\Component\Mailer\Bridge\Sendgrid\Header\SuppressionGroupHeader;
// [...]
$email = new Email();
$email->getHeaders()->add(new SuppressionGroupHeader(GROUP_ID, GROUPS_TO_DISPLAY));
```

where:

- `GROUP_ID` is your Sendgrid suppression group ID
- `GROUPS_TO_DISPLAY_ID` is an array of the Sendgrid suppression group IDs presented to the user

Scheduling
----------

[](#scheduling)

When using the **API transport** (with a `sendgrid+api` DSN), you can schedule your emails by providing a `\DateTimeInterface` object in a `Symfony\Component\Mime\Header\DateHeader` named `Send-At`.

```
$email = new \Symfony\Component\Mime\Email();
$email->getHeaders()->addDateHeader('Send-At', new \DateTimeImmutable('+3 hours'));
```

It will be mapped to the `send_at` parameter of the `[POST] /mail/send`[API endpoint](https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send#request-body)

Resources
---------

[](#resources)

- [Contributing](https://symfony.com/doc/current/contributing/index.html)
- [Report issues](https://github.com/symfony/symfony/issues) and [send Pull Requests](https://github.com/symfony/symfony/pulls)in the [main Symfony repository](https://github.com/symfony/symfony)

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance68

Regular maintenance activity

Popularity60

Solid adoption and visibility

Community35

Small or concentrated contributor base

Maturity96

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~23 days

Total

188

Last Release

151d ago

Major Versions

5.4.x-dev → v6.4.132024-09-26

v6.4.13 → v7.1.62024-09-27

v6.4.18 → v7.1.112025-01-07

v6.4.24 → v7.2.92025-07-10

v7.4.0 → 8.0.x-dev2025-09-18

PHP version history (9 changes)v4.3.1PHP ^7.1.3

v5.0.0-BETA2PHP ^7.2.9

v5.0.2PHP ^7.2.5

v5.1.0-RC2PHP &gt;=7.2.5

v4.4.10PHP &gt;=7.1.3

v6.0.0-BETA1PHP &gt;=8.0.2

v6.1.0-BETA1PHP &gt;=8.1

v7.0.0-BETA1PHP &gt;=8.2

8.0.x-devPHP &gt;=8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47313?v=4)[Fabien Potencier](/maintainers/fabpot)[@fabpot](https://github.com/fabpot)

---

Top Contributors

[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (99 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (62 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (11 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (9 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (8 commits)")[![Koc](https://avatars.githubusercontent.com/u/191082?v=4)](https://github.com/Koc "Koc (5 commits)")[![Tobion](https://avatars.githubusercontent.com/u/610090?v=4)](https://github.com/Tobion "Tobion (3 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (3 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (3 commits)")[![alexandre-daubois](https://avatars.githubusercontent.com/u/2144837?v=4)](https://github.com/alexandre-daubois "alexandre-daubois (2 commits)")[![ericabouaf](https://avatars.githubusercontent.com/u/39354?v=4)](https://github.com/ericabouaf "ericabouaf (2 commits)")[![sonnymilton](https://avatars.githubusercontent.com/u/28928301?v=4)](https://github.com/sonnymilton "sonnymilton (2 commits)")[![ogizanagi](https://avatars.githubusercontent.com/u/2211145?v=4)](https://github.com/ogizanagi "ogizanagi (1 commits)")[![pierredup](https://avatars.githubusercontent.com/u/144858?v=4)](https://github.com/pierredup "pierredup (1 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (1 commits)")[![rosier](https://avatars.githubusercontent.com/u/117380?v=4)](https://github.com/rosier "rosier (1 commits)")[![rubanooo](https://avatars.githubusercontent.com/u/14110726?v=4)](https://github.com/rubanooo "rubanooo (1 commits)")[![SherinBloemendaal](https://avatars.githubusercontent.com/u/6769455?v=4)](https://github.com/SherinBloemendaal "SherinBloemendaal (1 commits)")[![klaussilveira](https://avatars.githubusercontent.com/u/467729?v=4)](https://github.com/klaussilveira "klaussilveira (1 commits)")[![arendjantetteroo](https://avatars.githubusercontent.com/u/713066?v=4)](https://github.com/arendjantetteroo "arendjantetteroo (1 commits)")

---

Tags

componentphpsymfonysymfony-component

### Embed Badge

![Health badge](/badges/symfony-sendgrid-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/symfony-sendgrid-mailer/health.svg)](https://phpackages.com/packages/symfony-sendgrid-mailer)
```

###  Alternatives

[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)[therobfonz/laravel-mandrill-driver

Mandrill Driver for Laravel

773.5M](/packages/therobfonz-laravel-mandrill-driver)[symfony/mailjet-mailer

Symfony Mailjet Mailer Bridge

484.7M12](/packages/symfony-mailjet-mailer)[mailersend/laravel-driver

MailerSend Laravel Driver

87732.8k4](/packages/mailersend-laravel-driver)[symfony/postmark-mailer

Symfony Postmark Mailer Bridge

4717.4M34](/packages/symfony-postmark-mailer)[symfony/mailchimp-mailer

Symfony Mailchimp Mailer Bridge

275.9M17](/packages/symfony-mailchimp-mailer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
