Office 365 IMAP integration

Microsoft 365 mail via IMAP/SMTP

Help Centre › Connectors

Overview

Microsoft 365 mail via IMAP/SMTP with a username and password. Microsoft has switched off password sign-in over IMAP for Microsoft 365 mailboxes, so use the Microsoft Graph connector for Microsoft 365 mail.

  • Regions: Microsoft 365 global.
  • Plans: Business/Enterprise subscriptions.

Setting up the connection

Auth type: HTTP Basic.

  1. Microsoft has switched off password sign-in over IMAP for Microsoft 365 mailboxes, so a username and password here will be refused.
  2. For Microsoft 365 mail, use the Microsoft Graph connector instead. It signs in through Microsoft and does not need a password.

Find your credentials at https://account.microsoft.com/security.


Rate limits

Microsoft IMAP/SMTP standard limits.


Data model

Standard mail (same as generic-mail).

Available operations

9 operations available. Click any row to jump to its detail.

OperationCategoryWhat it does
Count EmailsGeneralCount emails in a folder
Delete EmailGeneralDelete an email
Fetch EmailGeneralFetch a complete email by UID
List FoldersGeneralList mailbox folders
Mark ReadGeneralMark an email as read
Mark UnreadGeneralMark an email as unread
Move EmailGeneralMove an email to another folder
Search EmailsGeneralSearch for emails in a mailbox folder
Send EmailGeneralSend an email via SMTP

Operations

Count Emails

Count emails in a folder

ParameterRequiredTypeDescription
Folder folderNotext

Delete Email

Delete an email

ParameterRequiredTypeDescription
Uid uidYestext
Folder folderNotext

Fetch Email

Fetch a complete email by UID

ParameterRequiredTypeDescription
Uid uidYestext
Folder folderNotext

List Folders

List mailbox folders

No input parameters.


Mark Read

Mark an email as read

ParameterRequiredTypeDescription
Uid uidYestext
Folder folderNotext

Mark Unread

Mark an email as unread

ParameterRequiredTypeDescription
Uid uidYestext
Folder folderNotext

Move Email

Move an email to another folder

ParameterRequiredTypeDescription
Uid uidYestext
Source Folder source_folderNotext
Dest Folder dest_folderYestext

Search for emails in a mailbox folder

ParameterRequiredTypeDescription
Folder folderNotext
Criteria criteriaNotext
Limit limitNonumber

Tips

  • Standard IMAP SEARCH. Not Microsoft Search's full power.

Send Email

Send an email via SMTP

ParameterRequiredTypeDescription
To toYestext
Subject subjectYestext
Body bodyNotext
Html htmlNotext
Cc ccNotext
Bcc bccNotext
Attachments attachmentsNotextarea
Sender senderNotext

FAQ

vs Microsoft Graph connector?
Graph: full M365 surface (calendar, files, Teams). IMAP: just mail. Use Graph when possible.

Related connectors

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.