How to Configure Applications to Send and Receive Microsoft 365 Email
Question details
The user needs to configure third-party help desk applications to access a Microsoft 365 mailbox for sending and receiving emails.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Setting up email integration for help desk systems such as ManageEngine ServiceDesk Plus and System Center Service Manager.
- Observed behavior
- The application requires correct mail flow settings, dedicated mailbox credentials, and proper authentication protocols to interface with Microsoft 365 servers.
Ensure you have global administrator access to the Microsoft 365 Admin Center and administrative privileges within your target help desk application.
Set up a Dedicated Microsoft 365 Mailbox and Configure App Settings
Create a specific mailbox for the application and configure the necessary IMAP/SMTP or Microsoft Graph API settings to establish a successful connection.
To allow third-party services to securely send and process emails, Microsoft recommends setting up a dedicated user account or shared mailbox.
Modern applications should utilize OAuth 2.0 (Modern Authentication) or the Microsoft Graph API, as Basic Authentication has been deprecated for Exchange Online.
Log in to the Microsoft 365 Admin Center. Go to 'Users' > 'Active users' and click 'Add a user' to create a dedicated account for your application. Alternatively, create a Shared Mailbox under 'Teams & groups'.
In the Microsoft 365 Admin Center, select the newly created user. Go to the 'Mail' tab, click 'Manage email apps', and ensure the 'Authenticated SMTP' option is checked.
Open your help desk application's mail server configuration menu. For sending, use server 'smtp.office365.com' on port 587 with STARTTLS. For receiving via IMAP, use 'outlook.office365.com' on port 993 with SSL/TLS.
If your application supports Modern Authentication, register the application in Azure Active Directory (Microsoft Entra ID) to generate a Client ID and Tenant ID. Enter these details into the application's mail setup wizard.
Use the built-in 'Test Connection' or 'Send Test Email' button within the application to verify that the credentials and server settings are working properly.

Simplify Your Workflow with WPS Office
While managing complex Microsoft 365 server configurations, you can streamline your daily document creation and editing with WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office without the complicated setup.
- 1. Download the software: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install and launch: Run the setup file and open the WPS Office suite in seconds.
- 3. Open your documents directly: Drag and drop your existing DOCX, XLSX, or PPTX files into the application to continue working instantly.

Frequently Asked Questions
Why is my application failing to authenticate with Microsoft 365?
Microsoft has disabled Basic Authentication for Exchange Online to improve security. If your application relies on basic username and password authentication for IMAP or POP, the connection will fail. You must configure the application to use OAuth 2.0 (Modern Authentication) or register it via Azure AD.
Can I use a shared mailbox instead of a paid user account for my application?
Yes, many applications can access a shared mailbox without requiring a dedicated Microsoft 365 license. However, the application must authenticate using a licensed service account that has been granted 'Send As' and 'Full Access' permissions to the shared mailbox.
What are the correct SMTP settings for Microsoft 365?
To send email via SMTP, use the server address 'smtp.office365.com'. Set the port to 587, select TLS/STARTTLS as the encryption method, and ensure that 'SMTP AUTH' is enabled for the specific user account in the Microsoft 365 Admin Center.




