I am trying to configure sending emails with Symfony mailer component. It perfectly works with one DNS (which I have in my .env file). But I want to have 2 of them for example. How can I configure it? I haven't found anything sensible in the documentation.
Here is my mailer.YAML
framework:
mailer:
dsn: '%env(MAILER_DSN)%'
I would like to have something like:
framework:
mailer_default:
dsn: '%env(MAILER_DSN1)%'
mailer_second:
dsn: '%env(MAILER_DSN2)%'
But such an option is not possible, unfortunately.