Exchange Mail Sender

Send Exchange Online emails via SMTP. An account that supports Exchange Online is required

TENANT ID (supports %FILENAME% variables)

Azure Active Directory tenant ID created in Azure Portal:

CLIENT ID (supports %FILENAME% variables)

The unique Application (client) ID is assigned to your app by Microsoft Entra ID when the app is registered. Here's how to register a client ID:

The account type should remain the default Single tenant, the platform setting should be Web, and the URI should be set to http://localhost:3650/callback.

After completing the registration, you can obtain a client ID and then proceed to Add a certificate or secret:

After completing adding the New client secret, copy the value of the client secret:

CLIENT SECRET (supports %FILENAME% variables)

Fill in the client secret mentioned above.

SIGN IN

After pressing the SIGN IN button, Microsoft Account verification will be performed. After successful verification, the user's email account will be automatically filled in, and EMILY.RPA can use this email mailbox. Please note: Microsoft will force the login information to expire 90 days after SIGNing IN, so you need to return to the module interface to log in again every 90 days. Learn more: https://learn.microsoft.com/en-us/azure/active-directory/develop/configurable-token-lifetimes#refresh-and-session-token-lifetime-policy-properties

ACCOUNT

After filling in the TENANT ID, CLIENT ID, and CLIENT SECRET, clicking SIGN IN will open a browser to allow the user to complete the authentication process and automatically fill in the ACCOUNT field.

RECIPIENT

Recipients‘ addresses. If there are multiple recipients, they can be separated by commas, and the %FILENAME% variable is also supported: alice@example.com,bob@example.com,%contact%

CC

CC (Carbon Copy) addresses. Multiple addresses can be separated by commas, as mentioned above.

SUBJECT

Subject of the email, supporting %FILENAME% variable.

USE HTML

Whether the email template uses HTML syntax.

MAIL TEMPLATE

Email content template. If USE HTML is enabled, the template is using HTML syntax, otherwise, it's formatted in plain text. Supports the %FILENAME% variable: <h3>Dear %user%</h3> <p>Thanks for subscribing %serviceName% service.</p>

ATTACHMENT

Attach specified attachments. The format should be a regular expression string: invoice-[0-9]{3}\.jpg

LOW-CODE

Enable script editing. The input object contains the content filled out as described above, and you can make modifications here before sending it.

// Print the filled email content first and make modifications before sending
console.log(input)

input.bcc = 'archive@company.com'

--

We are dedicated to improving our content. Please let us know if you come across any errors, including spelling, grammar, or other mistakes, as your feedback is valuable to us! 🤖️⚡️

Last updated