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.1.0(1mo ago)7012.2M↓37.4%1115MITPHPPHP &gt;=8.4.1

Since Mar 30Pushed 4w 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.2 Synced 3d ago

READMEChangelog (10)Dependencies (6)Versions (192)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)

Sponsor
-------

[](#sponsor)

This package is looking for a [backer](https://symfony.com/backers).

Help Symfony by [sponsoring](https://symfony.com/sponsor) its development!

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

76

—

ExcellentBetter than 100% of packages

Maintenance94

Actively maintained with recent releases

Popularity60

Solid adoption and visibility

Community35

Small or concentrated contributor base

Maturity97

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 ~14 days

Recently: every ~2 days

Total

192

Last Release

29d ago

Major Versions

v6.4.18 → 7.1.x-dev2025-01-07

v6.4.24 → v7.2.92025-07-10

v7.4.0-BETA1 → v8.0.02025-09-18

6.4.x-dev → 7.4.x-dev2026-06-05

7.4.x-dev → 8.0.x-dev2026-06-05

PHP version history (10 changes)v4.3.0-BETA2PHP ^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

v8.0.0PHP &gt;=8.4

v8.1.0-BETA1PHP &gt;=8.4.1

### 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 (110 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.6M500](/packages/illuminate-mail)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[symfony/mailgun-mailer

Symfony Mailgun Mailer Bridge

14538.8M98](/packages/symfony-mailgun-mailer)[symfony/postmark-mailer

Symfony Postmark Mailer Bridge

4820.4M66](/packages/symfony-postmark-mailer)[symfony/mailchimp-mailer

Symfony Mailchimp Mailer Bridge

286.4M20](/packages/symfony-mailchimp-mailer)[symfony/mailjet-mailer

Symfony Mailjet Mailer Bridge

485.3M15](/packages/symfony-mailjet-mailer)

PHPackages © 2026

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