Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...


Create Azure Application

...

In the Azure portal, select Azure Active Directory and go to App registrations.

Image Removed

Go to Enterprise applications → All applications

Image Removed

Select New application at the top of the dialog.

Image Removed

Enter the name of the application in the search box. Select the desired application from the results panel and register it.

Image Removed

On the Application Name page, click Sign up for <Application Name>.

Image Removed

You will be redirected to the application's login page or to the Azure Active Directory (Azure AD) page for login credentials.

After successful authentication, you must accept consent on the consent page. The application will then be displayed on the home page.

Click App registrations on the left side of the menu and open the application by typing the application name in the search box.

Image Removed

Click View API Permissions in Call APIs.

Image Removed

Click Add a permission.

Image Removed

Click on the Microsoft Graph.

Image Removed

Select the required options under Delegated permissions and Application permissions

Image Removed

Image Added

Then click New registration.

Image Added

Set a Name and select Supported account types. In Redirect URI, select Web and set Redirect URL from HostBill. Press RegisterCopy Application (client) ID to Client ID in HostBill.

Image Added

For the created application go to Certificates & secrets and then press New client secret. Copy Client Secret to HostBill.

Image Added

Go to API permissions and Add a permission.

Add the following Scopes:

  • openid
  • email
  • offline_access
  • https://outlook.office365.com/IMAP.AccessAsUser.All
  • https://outlook.office365.com/SMTP.Send
  • https://outlook.office365.com/mail.read
  • https://outlook.office365.com/User.Read

Image Added

Go to the application's Properties and copy the Application ID as Client ID in HostBill.Click All settings → Keys and select Duration. Click Save and copy Secret Value as Client Secret in HostBill. Expose an API and Add a scope and Add a client application.

Image Added

Set up Azure in HostBill

...

Then save the changes and press Connect. During authorization, log in to the account provided in the SMTP Email address. After successful Authorization, the Connection Token should be set.

...

Info

If messaging does not work after receiving an Access Token, make sure you have SmtpClientAuthentication enabled for Tenant. Visit https://aka.ms/smtp_auth_disabled for more information.


Warning
titleError: Application is not configured as a multi-tenant application

Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.

Go to Azure Portal → Azure Active DirectoryApp registrations (preview) → Your AppAuthenticationSupported account types, and select Accounts in any organizational directory.


Warning
titleThe Connection Token was generated correctly but the message could not be sent.

After pressing Connect you should be redirected to the login page and you should log in with your SMTP Email address account. If you are currently logged in to another account, the login page is skipped after pressing Connect. The authorization will succeed and the Connection Token will be generated correctly, but the SMTP will not work because the current account does not have access.

Follow these steps:

  1. Sign out of Azure/Microsoft.
  2. Go to SMTP configuration in HostBill.
  3. Press Disconnect.
  4. Then press Connect.
  5. You will be redirected to the login page, here you must log in to the account which is specified in SMTP Email address