---
schema_version: "1"
id: 118f41b2ad279cbc75b956d77b2b8a008e81d0a94ce52c458f450138ca5d9967
title: Set 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-set-mail.md
canonical_url: https://docs.mulesoft.com/rpa-builder/6.6/toolbox-mail-operations-set-mail
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4f33cd1657315b2c520063f3323b63c9be5e6e9c7ecf328fc8e616a275a9b790
description: MuleSoft Documentation Site
release: "6.6"
latest: false
---
---
product: RPA Builder
version: 6.6
---

# 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).
