Microsoft Email Sender
Provides integration with Microsoft Graph for sending email messages and attachments from a Workflow.
Revision History
1.0.0.0 - Initial release.
1.0.0.9 - Improved OAuth connection handling.
0.0.0.12 - Corrected Node name.
Connection
The Connection stores the Microsoft Graph OAuth settings and, optionally, the mailbox to send from.
| Property | Type | Description |
|---|---|---|
Tenant Id |
String | The Microsoft Entra ID tenant identifier, or common for a multi-tenant sign-in flow. |
Client Id |
String | The application ID from your Microsoft Entra ID app registration. |
Client Secret |
Masked | The client secret generated for the app registration. |
Access Token |
Masked | The OAuth access token returned after authorization. |
Refresh Token |
Masked | The OAuth refresh token used to renew access when Microsoft returns one. |
Scopes |
String | The OAuth scopes requested during authorization. The default is offline_access https://graph.microsoft.com/.default. |
Mailbox |
String | The optional mailbox address or UPN to send from. Leave this empty to use the authenticated user mailbox. |
Setup Notes
- Register an application in Microsoft Entra ID with the
Mail.Sendpermission. AddMail.ReadWriteonly if you also use the listener Node. - Grant admin consent when your tenant requires it, or make sure the signed-in user has already consented to the requested permissions.
- Configure the
ConnectionwithTenant Id,Client Id, andClient Secret, then complete the OAuth authorization flow soAccess TokenandRefresh Tokenare populated. - Set
Mailboxonly when you need to send from a specific mailbox. Leave it empty when you want the Node to use the authenticated user mailbox. - Base64-encode attachment content and supply
Attachmentsas an array of objects that includeName,ContentBytes, and, optionally,ContentType. The aliasesFileNameandDataare also accepted.
Methods
The Microsoft Email Sender Node exposes one method for sending one or more email messages through Microsoft Graph.
SendEmail
Sends one or more email messages by using the supplied request items.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | The Microsoft Graph Email Connection that contains the mailbox authorization details. |
Request |
Array | The email request items. Each item must include Subject, Body, and ToRecipients. Optional fields include CcRecipients, BccRecipients, HtmlBody, and Attachments. |
| Return | Type | Description |
|---|---|---|
Response |
Boolean | Returns true when all request items are sent successfully. |
Usage Notes
- Separate recipient addresses in
ToRecipients,CcRecipients, andBccRecipientsby using commas, semicolons, or new lines. - Set
HtmlBodytotruewhen the value inBodycontains HTML markup. - If
Requestcontains multiple items, the Node sends one email per item.
Known Issues
- The sender requires
Mail.Sendpermission on the target mailbox. - Large attachments remain subject to Microsoft Graph size limits.