Get The Most Affordable Hosting in the World!
Starting at just $1.87/month, Vercaa offers unbeatable pricing for world-class web hosting services.
Fast, reliable, and secure hosting to power your website without breaking the bank. Plus, enjoy a free CDN for faster loading times worldwide!
Get Started Now!WHMCS can import email through several different service providers, including POP3 or IMAP, Google®, and Microsoft®. If you use Google or Microsoft, you receive the benefits of OAuth2, which provides more security than traditional username-and-password authentication.
You can configure Microsoft email services for email importing in WHMCS 8.6 and later using a Microsoft Azure® app. For more information on setting up other service providers, see Email Importing Integrations.
Before you can use Microsoft email services, you must also set Friendly URLs to Full Friendly Rewrite or Friendly index.php in the General tab at Configuration > System Settings > General Settings.
Set Up Microsoft in WHMCS
To set up importing, create or edit a department at Configuration > System Settings > Support Departments.
Enter your support department information in the Add New Department section of the page. Then, under Mail Importing Configuration, select Microsoft as your Service Provider.
![](https://media.screensteps.com/image_assets/assets/005/628/888/original/8a20c327-2e54-4200-9c31-3e673c4c0a92.png)
Click the Copy icon next to Redirect URL.
Use this URL to create the necessary Microsoft Azure app. For instructions, see below.
After you create your Microsoft Azure app, copy-and-paste the Application (client) ID and Client Secret from the Microsoft Azure console into the appropriate text boxes.
Click Connect. (Connection Token will be blank until you do this.)
![](https://media.screensteps.com/image_assets/assets/005/628/890/original/875d845d-516a-44e0-8e9f-b23e3a3f1edb.png)
If you have multiple Microsoft accounts, the system may prompt you to choose the correct account. If you see this prompt, log in to the email account from which WHMCS will send emails to clients.
![](https://media.screensteps.com/image_assets/assets/005/628/892/original/840d286a-6025-4453-acb5-3b8a3540bcd4.png)
After you complete the necessary prompts, a success message will display and WHMCS will automatically enter a token in Connection Token.
Click Save. The system will test your configuration again when you save, and then you will be ready to start using email importing.
Make certain to set your From Email address to the Microsoft mail account that you are using. Microsoft services may not accept email from a different identity.
Create Your Microsoft Azure Application
To use Microsoft as your service provider, you will need to create an app. This will let you connect to Microsoft via WHMCS. If you have already used the Microsoft Azure console, you may not need to perform some of these steps, or interfaces may not look like the screenshots below.
Go to the Microsoft Azure Portal and log in to your existing account or create a new one.
Go to Azure Active Directory.
![](https://media.screensteps.com/image_assets/assets/005/628/894/original/821aff08-1634-485a-944f-e6f136b83c04.png)
Choose App registrations in the left-side menu and click New registration.
![](https://media.screensteps.com/image_assets/assets/005/628/896/original/e2a98acf-94d3-4e29-a000-c2603027e57a.png)
Enter a name for your application.
![](https://media.screensteps.com/image_assets/assets/005/628/898/original/e3d34795-8dd9-414b-9833-1edfa343b115.png)
For Supported account types, select Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox).
![](https://media.screensteps.com/image_assets/assets/005/628/900/original/e4507f6e-24a5-4057-9cc7-285b4a4070d5.png)
For Redirect URI, select Web and use the Redirect URL value from WHMCS.
![](https://media.screensteps.com/image_assets/assets/005/628/902/original/157bf1a5-ab85-4a24-8891-fe7060fcacad.png)
Save the application.
Copy and store the Application (client) ID value.
![Application (client) ID](https://media.screensteps.com/image_assets/assets/005/778/069/original/4fd64b14-ba0b-4c4c-89ee-90143807f31a.png)
Click Add a certificate or secret next to Client credentials.
Enter a description and choose a validity length. When the validity period expires, you must create a new client secret and repeat the steps to configure Microsoft in WHMCS.
![](https://media.screensteps.com/image_assets/assets/005/628/904/original/470425ad-c220-41e7-827f-81036fdd6dbf.png)
Copy and store the client secret and the Application (client) ID value.
![Client secret Value](https://media.screensteps.com/image_assets/assets/005/778/067/medium/c1482cee-94b9-4c25-92d3-d0b938bbfaa0.png)
You cannot retrieve the client secret again. You can use these values to complete configuration in WHMCS.