UiPath Integrations

Send Mail

Overview

The Send Mail activity uses the Microsoft Graph CreateMessage and SendMail APIs to send a message (Body and Subject) to one or more recipients (To, CC, and BCC). This activity also gives you the option to include one or more attachments (Attachments) with your message.

How it works

The following steps and message sequence diagram is an example how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.

  1. Complete the Setup steps.
  2. Add the Microsoft Office 365 Scope activity to your project.
  3. Add the Send Mail activity inside the Microsoft Teams Scope activity.
  4. Enter values for the Input and Recipients properties.
  5. Run the activity.

Properties

The values for the following properties are specified when adding this activity to your project in UiPath Studio.

Common

DisplayName

The display name of the activity.

Attributes
Details

Type

String

Required

Yes

Default value

Send Mail

Allowed values

Enter a String or String variable.

Notes

N/A


Email

Body

The body of content that you want to include in your message

Attributes
Details

Type

String

Required

No

Default value

Empty

Allowed values

Enter a String or String variable.

Notes

N/A


Subject

The subject of the mail you're sending.

Attributes
Details

Type

String

Required

No

Default value

Empty

Allowed values

Enter a String or String variable.

Notes

  • To send from the current user's email address, leave empty.
  • To send from a different email address, enter an email address that the current user has SendAs permissions for.

Input

Account

The email address that you want to send emails from.

Attributes
Details

Type

String

Required

No

Default value

Empty

Allowed values

Enter a String or String variable.

Notes

  • You may enter a shared mailbox if you have access rights.
  • To use your email address leave this property empty.

Options

Attachments

A collection of local files that you want to attach.

Attributes
Details

Type

Collection

Required

No

Default value

Empty

Allowed values

Use the Attach Files button to open your file explorer, or enter your files using <in> arguments (see example image below).

Notes

  • The mail size, including attachments, must not exceed 4MB.

From

The email address that you want the mail to be sent from.

Attributes
Details

Type

String

Required

No

Default value

Empty

Allowed values

Enter a String or String variable.

Notes

  • The mail size, including attachments, must not exceed 4MB.

--

IsBodyHTML

If selected, the body of the email is sent in HTML format.

Attributes
Details

Type

Checkbox

Required

No

Default value

Not Selected

Allowed values

Selected or Not Selected

Notes

N/A


IsDraft

If selected, the message is saved as a draft and not sent.

Attributes
Details

Type

Checkbox

Required

No

Default value

Not Selected

Allowed values

Selected or Not Selected

Notes

N/A


Recipients

Bcc

A comma separated list of email addresses that you want included as Bcc recipients.

Attributes
Details

Type

String[]

Required

No (required if Cc and To are empty)

Default value

Empty

Allowed values

Enter a String[] or String[] variable.

Notes

  • To enter one email address, include it between { } and declare it with " " (e.g., {"user1@uipath.com"})
  • To enter multiple email addresses, include all between { }, declare each with " ", and separate each by a comma (e.g., {"user1@uipath.com","user2@uipath.com"}).

Cc

A comma separated list of email addresses that you want included as Cc recipients.

Attributes
Details

Type

String[]

Required

No (required if Bcc and To are empty)

Default value

Empty

Allowed values

Enter a String[] or String[] variable.

Notes

  • To enter one email address, include it between { } and declare it with " " (e.g., {"user1@uipath.com"})
  • To enter multiple email addresses, include all between { }, declare each with " ", and separate each by a comma (e.g., {"user1@uipath.com","user2@uipath.com"}).

To

A comma separated list of email addresses that you want to send your mail to.

Attributes
Details

Type

String[]

Required

Yes

Default value

Empty

Allowed values

Enter a String[] or String[] variable.

Notes

  • To enter one email address, include it between { } and declare it with " " (e.g., {"user1@uipath.com"})
  • To enter multiple email addresses, include all between { }, declare each with " ", and separate each by a comma (e.g., {"user1@uipath.com","user2@uipath.com"}).

Misc

Private

If selected, the values of variables and arguments are no longer logged at Verbose level.

Attributes
Details

Type

Checkbox

Required

No

Default value

Not Selected

Allowed values

Selected or Not Selected

Notes

N/A


Example

The following image shows an example of the activity dependency relationship and input/output property values.

For step-by-step instructions and examples, see the Quickstart guides.

Updated a day ago


Send Mail


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.