Prerequisites:
- administrator account for the Microsoft Azure Portal,
- access to the Style desktop application with an account, which has access rights to change the system settings.
- Creating an application in the Azure Portal:
- Open the Azure Portal and search for "App registrations"
- Click "+ New registration"
- Give the application a friendly name, e.g. StyleMailApp
- Click register
- You'll be redirected to the new application's overview page
- Copy and save the values of the "Application (client) ID" and the "Directory (tenant) ID" fields
- Configuring application's API permissions (continues from above):
- Expand the "Manage" group in the menu on the left and select "API permissions"
- Click "+ Add a permission"
- On the newly opened panel on the right, select the "APIs my organization uses" tab
- Search for "Office" and select the "Office 365 Exchange Online"
- Select "Application permissions"
- Select the "full_access_as_app" in the "Other permissions" group and click the "Add permissions" button
- The new permission will be shown on the table, with the warning "Not granted for..." in the Status column
- Click on the "Grant admin consent for ..." button above the table and confirm
- Verify the "Status" column shows "Granted for" on the "full_access_as_app" row
- Creating a secret (continues from above):
- Select "Certificates & secrets" from the "Manage" group in the menu on the left
- Select the "Client secrets" tab and click "+ New client secret"
- Give a friendly description and select the desired validity (shorter validity will require creating a new secret more often)
- Copy and save the value from the "Value" column (not the Secret ID column!).
- Configuring the Style system settings for Style Web
- Open the Style desktop application
- Go to menu "Настройки\Настройки на СТИЛ Уеб\Системни"
- Select the "Имейл известия" tab
- Select the "Office 365 EWS" radio button
- Fill the "Directory (tenant) ID" and "Application (client) ID" fields with the values from step 1.6.
- Fill the "User" and "Имейл на подателя" fields with the email address of the mailbox that be used to send the emails from
- Fill the "Client secret" field with the value from step 3.4.