# "sendgrid+api" dsn scheme is not supported

**URL:** https://forum.mautic.org/t/sendgrid-api-dsn-scheme-is-not-supported/34519
**Category:** Product Support
**Created:** [December 23, 2024, 12:09pm UTC](https://forum.mautic.org/t/sendgrid-api-dsn-scheme-is-not-supported/34519 "2024-12-23T12:09:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rahulmittal2099](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rahulmittal2099/32/13377_2.png) [@rahulmittal2099](https://forum.mautic.org/u/rahulmittal2099)
#### Post date: [December 23, 2024, 12:09pm UTC](https://forum.mautic.org/t/sendgrid-api-dsn-scheme-is-not-supported/34519/1 "2024-12-23T12:09:40Z")

</div>

**Your software**  
My Mautic version is: 5.2.1  
My PHP version is: 8.1

**Your problem**  
I installed mautic via composer.  
Tried to use sendgrid+api and it gave the error that bridge is not installed.  
I installed symphony/sendgrid-mailer via composer and the original error went away.  
But now when I try to enter and save sendgrid+api it gives error - “sendgrid+api” scheme is not supported. Same for “sendgrid+smtp”. I tried to enter same directly in config/local, but on Send Test Email, it still gives same error.

 ![Screenshot (610)](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/8c3e8839d92d0276128222a7f1283b834febebac.png)

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [December 24, 2024, 7:14am UTC](https://forum.mautic.org/t/sendgrid-api-dsn-scheme-is-not-supported/34519/2 "2024-12-24T07:14:19Z")

</div>

Hello,

The docs [here](https://github.com/symfony/sendgrid-mailer) doesn’t mention host and port.  
Your DSN should look like this:

MAILER\_DSN=sendgrid+api://KEY@default?region=REGION

Also: how are you planning to solve the feedback loop?

---

<div class="post-metadata">

### Author: ![rahulmittal2099](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rahulmittal2099/32/13377_2.png) [@rahulmittal2099](https://forum.mautic.org/u/rahulmittal2099)
#### Post date: [December 24, 2024, 8:34am UTC](https://forum.mautic.org/t/sendgrid-api-dsn-scheme-is-not-supported/34519/3 "2024-12-24T08:34:59Z")

</div>

> [@joeyk](#):
>
> MAILER\_DSN=sendgrid+api://KEY@default?region=REGION

Hi Joeyk

Thanks for your response. I’ve tried directly entering the entry in config/local.php as well using exact format:  
MAILER\_DSN=sendgrid+api://KEY@default?region=REGION

Then cleared mautic cache.

Even then when I go to Settings UI and try to send test email, it gives exact same error message.

Also, feedback loop? Please elaborate if you possibly can?

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [January 25, 2025, 1:53pm UTC](https://forum.mautic.org/t/sendgrid-api-dsn-scheme-is-not-supported/34519/5 "2025-01-25T13:53:04Z")

</div>

After looking for the correct configuration finally found this one: [Upgrade to 5.1 - SendGrid not working - #2 by c-speed](https://forum.mautic.org/t/upgrade-to-5-1-sendgrid-not-working/32486/2)

have not fixed up feedback loops yet, but will get there
