Forum Discussion
joakimlundberg
Jul 11, 2024Copper Contributor
Using msal4j trying to send email (SMTP with OAUTH2) fails
I am trying to write a Java server application that should send emails using my account with msal4j. I have tried to find solutions online but all sources are either pointing to very old solution...
SidsiS
Oct 01, 2024Copper Contributor
I have the same problem, the only difference with your code is this line: toke.setAuthority("https://login.microsoftonline.com/consumers/"); you have: .authority("https://login.microsoftonline.com/" + strTenantID).build();. I have not been able to solve it.