Share via

I am trying to send an email using the code and the outlook smtp protocol, but there is an authentication error

建伟 周 0 Reputation points
2024-11-12T03:35:48.98+00:00

I created an application in Azure and exchanged the access_token with code, but I get an error when using jakarta.mail: “535 5.7.3 Authentication unsuccessful [SGXP274CA0007.SGPP274.PROD. outlook.com 2024 -11-12t03:19:03.964z 08dd02bfa482f37e]”.

An error occurred while using the microsoft SDK: “Request failed. The remote server returned an error:(401)”. Is there anything else I need to configure in Azure?

Microsoft 365 and Office | Office Online Server
Microsoft 365 and Office | Development | Office JavaScript API
Outlook | Windows | Classic Outlook for Windows | For business

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.