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

# Send Mail

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

With the _Send Mail_ Action Step, you can 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.

## Properties

**Send Mail Settings**

**Body** Here, the content of the mail is displayed. A total of 3900 characters are available.

**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, you can enter text under **Body**. You can link the content with **Insert
Available Variables**, assuming you defined variables in advance either using the Activity
Parameters or the Workflow Based 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).
