I have symfony project with swiftMailer bundle. I was trying to send email via swiftmailer using NTLM auth. But I have not found a way to turn on NTLM via configuration of the bundle.
After struggling with it I have found solution
First solution
current($this->get('mailer')->getTransport()->getExtensionHandlers())
->setAuthenticators([new \Swift_Transport_Esmtp_Auth_NTLMAuthenticator()]);
Comment spool in config.yml
# spool: { type: memory }
But it's look a little bit weird.
Second solution
Remove SwiftMailer bundle and use swiftMailer directly, because ntlm auth type activated by default.
Is there a better way to use NTLM auth type?