You've to integrate Microsoft Graph API to get SMTP services. Please follow the steps below to integrate:
1. Go to the Microsoft Azure Portal and click on Azure Active Directory. If it's not available, check on More services.
2. Click on App registrations from left menu the click New registration.
3. After that, you'll get a form like this. Fill up as below. In Redirect URI, you should add this url https://yourdomain.com/index.php/microsoft_api/save_outlook_smtp_access_token. You'll find this in your integration setting. Finally click on Register button.
4. Now, you'll get the Overview page. Copy Client ID from there and add to integration settings.
5. Click on API permissions from left menu. Then click on Add a permission.
6. Click on Microsoft Graph.
7. Click on Application permissions.
8. Enable the Mail.Send permission.
9. Click on Certificates & secrets from left menu. Then click on New client secret.
10. Fill up the form like below and click on Add button.
11. After that, you'll get the Client secret.
12. Add this Client secret also to the integration settings and click on Save & authorize.
The page will be redirected to Microsoft account. Click on the Accept button.
After that, status of the email settings should be Authorized.