Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3924

Symfony4. How to work with 2 swiftmail configurations?

$
0
0

I have 2 smtp-servers. How can I switch between them? My service should decide via wich smtp-server to send a mail.

In my swiftmailer.yaml, I have only the following configuration.

swiftmailer:
    url: '%env(MAILER_URL)%'
    spool: { type: 'memory' }

Can I set the login and password to the smtp-server on the fly in my service? I need a quick solution, if it's possible.

Thank you


Viewing all articles
Browse latest Browse all 3924


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>