"sendgrid+api" dsn scheme is not supported

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.

Hello,

The docs here 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?

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?

After looking for the correct configuration finally found this one: Upgrade to 5.1 - SendGrid not working - #2 by c-speed

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