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...
tamaskohegyi
Jan 02, 2025Copper Contributor
same code for me is working, the only diff are these:
Set<String> SCOPE = Collections.singleton("https://outlook.office365.com/.default");
+ Api permission is Office 365 Exchange Online / SMTP.SendAsApp