activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Dec 9, 2025

For Each Email

UiPath.AppleMail.Activities.ForEachEmail

Executes one or more activities for each email message in the specified folder.

This activity iterates through email messages in a specified Apple Mail account and folder. You can process each email individually by executing activities within its body. You can filter emails by various criteria such as sender, subject, date received, and more. The activity supports downloading attachments and provides control over the number of emails to retrieve.

Note: This activity only runs on macOS systems with the Apple Mail application installed and configured.

Project compatibility

Windows | Cross-platform

Configuration

You can configure the activity and its properties as follows:

  • Account - The name of the account to search for emails.
  • Folder - The name of the folder to search for emails.
  • Filter - Select the field to edit the email filter, which opens the Filter builder window. For more details on how to configure your filter, check Filter Builder.
  • Download attachments - Select True or False depending on whether you want to download email attachments or not.
Note: For more details on the plus menu options, check Designing automations.

Properties

Input

  • Top - The maximum number of emails to retrieve.
  • Current variable name - The name the email will have inside the body of the activity.

Output

  • Result - The number of processed emails.

  • Project compatibility
  • Configuration

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2025 UiPath. All rights reserved.