You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.
I am trying to use two different mailers from my console command. The problem is that the username / password seems to be overwritten. I checked on #symfony IRC where I was told that they apparently share the same auth handler.
It seems that the username / password is always the one from the last mailer. The host names do differ though, having 127.0.0.1 and smtp.sendgrid.net as their values.
Also note that the code is being executed from a console script that extends from ContainerAwareCommand. When I test this in a normal controller, I don't have any issues. The username/password are different then (as they should).
By testing in a normal controller, I mean a controller that handles a HTTP request.. I wrote this little test:
I am trying to use two different mailers from my console command. The problem is that the username / password seems to be overwritten. I checked on #symfony IRC where I was told that they apparently share the same auth handler.
I wrote a MailHandler with this service config:
My swiftmailer config is as follows:
Now when I log some stuff in my MailHandler:
It seems that the username / password is always the one from the last mailer. The host names do differ though, having 127.0.0.1 and smtp.sendgrid.net as their values.
Also note that the code is being executed from a console script that extends from ContainerAwareCommand. When I test this in a normal controller, I don't have any issues. The username/password are different then (as they should).
By testing in a normal controller, I mean a controller that handles a HTTP request.. I wrote this little test:
The text was updated successfully, but these errors were encountered: