Just adding that I am experiencing something related (not the same though), started on March 4th and repeated on March 8th in my case
{
"code": 422,
"message": "SMTP Error: Could not connect to SMTP host. Failed to connect to server",
"errors": [
"SMTP Error: Could not connect to SMTP host. Failed to connect to server"
],
"fallback": "Tried to send using fallback but failed. websitename",
"fallback_response": {
"code": 400,
"message": "",
"errors": []
}
}
Hi Fluent – any suggestions on this please?
Hello. I just added Office365 to another site. Fresh install. And that too is getting the 422 error. Even though the settings say “our Outlook / Office365 Authentication has been enabled.No further action is needed.” When I send a test it fails and logs show the 422 error.
Hello @katmac_aus,
Thanks for reaching out to us and providing detailed information about the issues you’re experiencing with FluentSMTP. I understand this is frustrating, especially since it was working well initially. The 422 “Unauthorized” error you’re seeing after re-authenticating points towards a problem with the token’s validity or the Client Secret’s configuration within your Azure environment.
Regarding the issues you have described for two different setups, I would like to primarily investigate on this problem, and for that, could you share the expiry of the token in the Azure while the Client Secret is being created?
This information will help us understand if the token is expiring sooner than expected, causing the repeated authentication issues.
Thanks Ibrahim. We didnt have time to wait for a response so we ended up switching over to use Brevo for emails (as we only send a couple of emails a day via the website). So for this been working nicely on those sites.
We had their IT people setup azure so dont know what they set as the expiry so cannot confirm that. But I doubt they would have chosen 24 hours as the validity.