Page 1 of 1

Mail with Office365

Posted: Wed Jan 04, 2023 2:45 am
by skiman
Hi,

Anyone who has some experience with mailing with Office365 and oAuth2.0?

It isn't possible anymore to send via SMTP and authentication with username and password. I modified my code to use the oAuth 2.0 method, and everything works well.

The only problem we have is that we need to authorize for every email address in a company. Each user has to give permission. This means a user has to login to his/her Microsoft account and to give permission to our app. In some companies this is a problem, since not each employee has access to that Microsoft account.

I was wondering if I do something wrong, or if there is another solution to grant permission for all users at one time.

Re: Mail with Office365

Posted: Wed Jan 04, 2023 10:07 am
by MIGUELON
Hi skiman, I use https://www.marshallsoft.com/see4xb.htm form Xbase++
And I have no problem sending with Microsoft Office 365.

Re: Mail with Office365

Posted: Thu Jan 05, 2023 1:11 am
by skiman
Hi,

Are you using the 'old' SMTP way? Microsoft is changing everything to oAuth2.0 for the authentication. Microsoft is shutting down legacy authentication. The moment this happens at your customers site, smtp authentication won't work anymore.

Re: Mail with Office365

Posted: Thu Jan 05, 2023 1:16 am
by skiman
Hi,

More info about the topic.

https://learn.microsoft.com/en-us/excha ... nge-online
... Beginning in early 2023, we will disable Basic authentication for any tenants who requested an extension. You can read more about the timing here.

Re: Mail with Office365

Posted: Thu Jan 05, 2023 3:59 am
by MIGUELON
Hello Skiman, I do not have this problem with Office 365 but I am investigating the LINK that you sent me
If I have any news I will post it
regards