Mail with Office365
Posted: Wed Jan 04, 2023 2:45 am
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.
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.