I'd like to use different smtp account for sending emails depending on context of the application. So I found this answer, but it work only only for changing username and password.
Changing smtp settings in SwiftMailer dynamically
I need to dynamically change host as well.
Any idea will be appreciated.