Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jakarta.ee-community] Using Angus/Jakarta Mail and OAuth2

Group,

Have spent a month trying to find the correct combination for my public Open Source application to simply send email using OAuth2.

Have the app registered with GMail and Microsoft Entra (for Personal Outlook accounts) and can retrieve an access_token.


GMail demands the client secret which does not follow OAuth2 standards for public apps. But can make an app password work, for now.

Can't send to Microsoft Outlook with any combination so far.


Using Angus Mail 2.0.4 with Jakarta Mail API 2.1.3 with a PasswordAuthentication object.

Both fail with SASL authentication failed, failed to connect or simply Authentication failed when attempting to connect.


Does anyone have or know of a working example please?


Thank you for your time.

 - Todd Hill



Back to the top