---
schema_version: "1"
id: 5524ee8d4dba180af0ad5bfbf19402029da20edf6e24d1c373dde8e6e63ebc43
title: Send Mail
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/latest/toolbox-mail-operations-send-mail.md
canonical_url: https://docs.mulesoft.com/rpa-builder/latest/toolbox-mail-operations-send-mail
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 9e2abe204574937e37cd7df7ad05dd7f9fe8a0f3dd3a30b349f028a3d80e1954
description: MuleSoft Documentation Site
release: "6.7"
latest: true
---
---
product: RPA Builder
version: 6.7
is-latest-version: true
---

# Send Mail

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Use the Send Mail action step to send a mail with the SMTP protocol. You can enter the recipient,
the subject, or send attachments just as with other mail programs.

You can only use the Send Mail action step within a Mail Session. You enter the information required
for the connection to the mail server in the Mail Session.

Send Mail doesn’t support sending HTML emails and sends the content in **Body** over SMTP as plain
text. To send a message body rendered as HTML, use RPA Builder to automate any SMTP CLI tool or any
online or local mail client.

## Properties

**Send Mail Settings**

**Body** Here, the content of the mail is displayed. A total of 3900 characters are available. RPA
Builder sends the body as plain text.

**Enter error state when a file does not exist** If this checkbox is selected and if one of the
attached files is not found in the production run, the Action Step is ended with an error.

**First directory path** Path to the directory, in which the first file to be attached, is located.
Enter the absolute or relative path. If relative, then the path refers to the variable _Base Path_.

**First file name** Contains the path to the first file that is to be attached.

**Second directory path** Path to the directory, in which the second file to be attached, is
located. Enter the absolute or relative path. If relative, then the path refers to the variable
_Base Path_.

**Second file name** Contains the path to the second file that is to be attached.

**Subject** Subject of the mail.

**Third directory path** Path to the directory, in which the third file to be attached, is located.
Enter the absolute or relative path. If relative, then the path refers to the variable _Base Path_.

**Third file name** Contains the path to the third file that is to be attached.

## Inbound Variables

**To** Recipient.

**Cc** Carbon copy.

**Bcc** Blind carbon copy.

**Subject** Subject of the mail.

**First directory path** Path to the directory, in which the first file to be attached, is located.
Enter the absolute or relative path. If relative, then the path refers to the variable _Base Path_.

**First file name** Contains the path to the first file that is to be attached.

**Second directory path** Path to the directory, in which the second file to be attached, is
located. Enter the absolute or relative path. If relative, then the path refers to the variable
_Base Path_.

**Second file name** Contains the path to the second file that is to be attached.

**Third directory path** Path to the directory, in which the third file to be attached, is located.
Enter the absolute or relative path. If relative, then the path refers to the variable _Base Path_.

**Third file name** Contains the path to the third file that is to be attached.

**Enter error state when a file does not exist** If this checkbox is selected and if one of the
attached files is not found in the production run, the Action Step is ended with an error.

## Outbound Variables

**IsSucceeded** Indicates whether an mail was sent successfully.

## Wizard

The wizard is split into two tabs, **Message** and **Attachment**.

In the Message area, enter text under **Body**. RPA Builder sends the content as plain text, not as
HTML. If you defined variables in advance either using the Activity Parameters or the Workflow Based
Variables, link the content with **Insert Available Variables**. Select the encoding to use between
UTF-8, UTF-16, Shift-JIS, and EUC-JP.

The pin variable is only displayed if you have defined a variable of type Bool using the Activity
Parameters or the Workflow Based Variables.

In the Attachment area, you can add up to three attachments to the mail. Under Directory path, you
define the path to the new file to be created. You can create an absolute path or a path relative to
the _Base Path_. The default value is %STWS\_BASEPATH%. Select an existing path. To construct the
path, you can also insert variables from the workflow.

You can find further explanations under [Properties](#properties).

## See also

- [Mail Session](https://docs.mulesoft.com/rpa-builder/latest/toolbox-mail-operations-mail-session)

- [Mail Session (OAuth)](https://docs.mulesoft.com/rpa-builder/latest/toolbox-mail-operations-mail-session-oauth)

- [REST Call](https://docs.mulesoft.com/rpa-builder/latest/toolbox-network-rest-call)

- [Credentials for OAuth](https://docs.mulesoft.com/rpa-builder/latest/toolbox-variable-handling-credentials-for-oauth)

- [Json Query](https://docs.mulesoft.com/rpa-builder/latest/toolbox-variable-handling-json-query)

- [Run Program](https://docs.mulesoft.com/rpa-builder/latest/toolbox-control-run-program)
