Closed arkniazi closed 4 years ago
You'll have to duplicate what happens in MailTrackerServiceProvider::registerSwiftPlugin() to reinstall the plugin if you reinstantiate the swift mailer.
Okay, got it.
It's working fine now.
$mailer->getSwiftMailer()->registerPlugin(new MailTracker());
Thanks
I'm trying to update credentials of email client on runtime. Because I'll be sending emails from different accounts.
I'm updating the credentials in following way.