0

Smtp details which we use are correct, for host smtp.office365.com mail is not sent every time.

Sometimes this error is generated, Fatal error: Uncaught Swift_TransportException: Failed to authenticate on SMTP server with username "XXX" using 2 possible authenticators in vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php on line 181

Observed behaviour

Sometimes with the same details, emails are sent.

Expected behaviour

It should send an email every time.

Can anyone please tell me what should I do?

Hasmukh Mistry
  • 129
  • 1
  • 18

1 Answers1

0

Is the login credentials you used correct and the.env file configured correctly? Here are two links that might be useful to you.

PHP Fatal error: 'Swift_TransportException' with message 'Failed to authenticate on SMTP server

Failed to authenticate on SMTP server error using gmail

Bruce
  • 182
  • 4