Microsoft 365 Email Send

Permits sending emails to one or more recipients on behalf of the authenticated Microsoft user utilizing the Microsoft Graph APIs.

Revision History

1.0.0.0 Initial Release
1.0.0.1 Changed name and added SenderEmail.

Connection

Type: Connection Input
The Connection Property

TenantId

Type: String
The ID of the Azure Active Directory tenant

ClientId

Type: String
The Client Id of the enterprise application which has been registered in Azure.

ClientSecret

Type: String
The Client Secret of the enterprise application which has been registered in Azure.

SenderEmail

Type: String
The senders email address. This must be the email of the user authorizing the connection.

Scope

Type: String
The Scope as a space-separated string. The default is "Mail.Send offline_access".

AccessToken

Type: Password

RefreshToken

Type: Password

Properties

ToRecipients

Type: String
One or many to recipients separated by a semi-colon.

CcRecipients

Type: String
One or many cc recipients separated by a semi-colon.

BccRecipients

Type: String
One or many bcc recipients separated by a semi-colon.

Subject

Type: String
The email subject.

Body

Type: Multiline Text
The email body as plain text or as formatted HTML.

HtmlBody

Type: Boolean
Indicates if Body will be containing plan text, or a formatted HTML body.

AttachmentName

Type: String
The name of the file attachment if the Attachment Property contains an attachment.

Attachment

Type: Multiline Text
The content of an attachment. Content can be a byte array or string.

Multiple Attachments:

To add multiple attachments, custom properties need to be added for each attachment name and value starting with Attachment / AttachmentName followed by a number. eg.

Attachment1: content for attachment1

AttachmentName1: attachment1.txt

Attachment2: content for attachment 2

AttachmentName2: attachment2.txt

Remarks

Configuring the Node

To configure the Microsoft 365 Email Send, you will need to register an application in your Entra (Azure AD) tenant.

  1. Get your Tenant ID

    • Log in to Azure Portal
    • Navigate to Microsoft Entra ID
    • Copy the Tenant ID from the Overview page.
  2. Register an Application

    • In Microsoft Entra ID, go to App registrations
    • Click New registration
    • Provide a name and set the redirect URI to:
      https://app.flowgear.net/r/auth
    • Set platform to Web
    • Click Register
  3. Configure API Permissions

    • After registration, go to API Permissions > Add a permission
    • Choose Microsoft Graph > Delegated permissions
    • Add the following scopes:
      • Mail.Send
      • offline_access
  4. Generate a Client Secret

    • Go to Certificates & secrets
    • Click New client secret, set an expiry, and copy the secret value.
  5. Populate Flowgear Node Properties

    • Use the Tenant ID, Client ID, and Client Secret in the corresponding fields.
    • Set the Scope field as:
      Mail.Send offline_access
    • Save the connection.
    • Use the Connect your account button to be redirected to the microsoft authorization page.
    • Once the connection is authorized by the user, AccessToken and RefreshToken will be automatically populated.