Skip to content

Plan Icon Creator

Microsoft 365 Mail#

The Microsoft 365 Mail integration sends the e-mails of your Email nodes from a mailbox in your own Microsoft 365 tenant instead of the platform's default mail service. Recipients see your address as the sender, replies reach your mailbox, and every sent e-mail is kept in the mailbox's Sent Items.

The platform signs in as an application, not as one of your users, and sends through Microsoft Graph. No SMTP relay, fixed IP address or change to your SPF record is needed.

Note

The integration covers the e-mails of Email nodes in Flows. Invitations, password reset links, exports and the other e-mails of the platform still go out from the default mail service.

What to set up in Microsoft 365 first#

The integration needs an app registration in Microsoft Entra ID and a mailbox in Exchange Online to send from. A shared mailbox works and needs no license.

  1. Under App registrations, create a New registration, for example mobile2b-mail. No redirect URI is needed.
  2. On the Overview page, note the Application (client) ID and the Directory (tenant) ID.
  3. Under Certificates & secrets, create a New client secret and copy its Value right away. It is shown only once, and the Secret ID next to it is not the secret.
  4. Allow the app to send from this one mailbox only. Do not grant the Microsoft Graph permission Mail.Send tenant-wide in Entra ID, as that lets the app send as every mailbox of your organisation. Assign it in Exchange Online with RBAC for Applications instead, for example in the Exchange Online PowerShell:

    New-ServicePrincipal -AppId <Application (client) ID> -ObjectId <Object ID of the enterprise application> -DisplayName "Mobile2b Mail"
    New-ManagementScope -Name "Mobile2b mailbox" -RecipientRestrictionFilter "PrimarySmtpAddress -eq 'noreply@example.com'"
    New-ManagementRoleAssignment -App <Application (client) ID> -Role "Application Mail.Send" -CustomResourceScope "Mobile2b mailbox"
    Test-ServicePrincipalAuthorization -Identity <Application (client) ID> -Resource noreply@example.com
    

    The last command shows whether the app may send from the mailbox. Changes in Exchange can take a while to apply.

Warning

A client secret expires after 24 months at the latest. After that every Email node fails until a new secret is entered. Note the expiry date and renew the secret in time: create a second secret, enter it here, and only then delete the old one.

Configuration#

Open System Integration and choose Microsoft 365 Mail in the Email section.

  • Directory (tenant) ID: from the Overview page of the app registration.
  • Application (client) ID: next to the tenant ID on the same page.
  • Client secret: the Value of the client secret. It is stored encrypted and never sent back to the browser. When you edit the integration later, leave the field empty to keep the stored secret.
  • Mailbox: the address the e-mails are sent from, for example noreply@example.com. It has to be a mailbox in Exchange Online.
  • Sender name: optional. The name shown next to the address in the From line, for example Example Ltd. Service.

Test connection fetches a token with the stored tenant ID, client ID and secret. It shows a wrong ID or secret straight away. Whether the app may send from the mailbox only shows with the first e-mail.

How e-mails are sent#

  • Every Email node of the account sends through the integration. An account has one sending mailbox; if several Microsoft 365 Mail integrations exist, the one changed last is used.
  • The From line is the mailbox, with the sender name if one is set. A sender entered in the Email node becomes the Reply-To address, so answers still reach it.
  • Subject, message, recipients and attachments are sent unchanged, large attachments included.
  • A new, changed or deleted integration applies to Flows within five minutes.
  • If Microsoft 365 refuses an e-mail, for example because the secret expired or the app may not send from the mailbox, the Email node fails with Microsoft's message in the run protocol. The e-mail is not sent through the default mail service instead.