Symfony version(s) affected
7.3.2
Description
This concerns the sendgrid-mailer component.
When a region is given, it results in the following address: smtp.{region}.sendgrid.net
However, for the global region, it must result in smtp.sendgrid.net (as if no region was given). smtp.global.sendgrid.net does not exist.
How to reproduce
Use the following DSN: sendgrid+smtp://{api_key}@default?region=global
It results in the following error:
Connection could not be established with host ssl://smtp.global.sendgrid.net:465
Possible Solution
Treat the global region differently from other regions.
Of course, the workaround is not to provide a region at all. But not being able to always define a region complicates configuration of the DSN somewhat (when it's assembled from different parts).
Additional Context
No response