Hello Aravind Babu Paritala
Thank you for reaching out to Microsoft Q&A regarding the issue with sending emails through the Microsoft Outlook node in your n8n workflow. This error (MailboxNotEnabledForRESTAPI) occurs when the Outlook REST API (via Microsoft Graph) cannot access the mailbox. Common causes include:
- The mailbox is hosted on-premise (local Exchange Server) rather than in the cloud.
- The account is inactive, soft-deleted, or lacks a valid Microsoft 365 license with Exchange Online.
- Licensing or configuration issues in hybrid setups.
Your n8n setup authenticates successfully but fails during email sending, which aligns with mailbox accessibility restrictions. Here something you can do to fix this:
- Verify Mailbox Status:
- Sign in to the Microsoft 365 admin center at admin.microsoft.com.
- Navigate to Users > Active users and ensure the account is active. If it's soft-deleted, restore it from Users > Deleted users.
- Assign or Confirm License:
- In the admin center, select the user and go to Licenses and apps.
- Assign a Microsoft 365 license that includes Exchange Online (e.g., Business Basic/Standard or Enterprise plans). Save changes and allow time for updates to apply.
- Migrate Mailbox if On-Premise:
- If your mailbox is on a local Exchange Server, work with your Exchange admin to migrate it to Microsoft 365. Use the Exchange Admin Center for hybrid setup and migration tools. Refer to Microsoft's official migration guide for detailed instructions: https://docs.microsoft.com/en-us/exchange/mailbox-migration/mailbox-migration.
- Check App Permissions:
- In Azure AD, confirm your app registration has Microsoft Graph permissions like
Mail.SendandMail.ReadWrite, with admin consent granted.
- In Azure AD, confirm your app registration has Microsoft Graph permissions like
After implementing these changes, retest your n8n workflow. Hope this will help you clear things up.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.