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

# Set Mail

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

With the _Set Mail_ action step, you can change the status of an e-mail. That is, you can mark it
either as read or unread and/or move it to a different folder.

You can only use the Set Mail action step within the Read Mail Action Step. You enter the
information required for the connection to the mail server in the Mail Session.

## Properties

**Change Read/ Unread Status** The e-mail is marked as either read or unread.

**Create folder if it does not exist** If the checkbox is selected, and no folder exists, then a
folder is created.

**Move mail to folder** If the checkbox is selected, the e-mail is moved to a different folder.

**Read mail status** Indicates whether the e-mail is marked as read or unread.

**Target folder** Name of the target folder.

## Inbound Variables

**Mail Info** Is made available only by the Read Mail action step. This can be used to uniquely
identify an e-mail.

**Target folder** Name of the target folder.

## Outbound Variables

**IsSucceeded** Indicates whether the action was carried out successfully.

## Wizard

See [Properties](#properties).
