PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloper’s Guide

Read Mailbox

Reads emails from an IMAP or POP3 mailbox, with optional filters, and returns their details and attachments.

Read Mailbox was previously called Inbound Email.

Read Mailbox reads the emails of a mailbox (IMAP or POP3) and returns their details (sender, recipients, subject, body, date…) and their attachments. You can filter by sender, recipients, subject, body or date, and keep only unread emails or emails with attachments. Use it to process incoming orders, invoices or support requests sent by email.

The action needs an SMTP Inbound credential with your mailbox's server and account. For a Gmail example, see Gmail incoming. If your mailbox requires OAuth sign-in, use Read Mailbox V2.

Add the action

In the Process Designer toolbox, pick Read Mailbox (or type Read Mailbox in the search box).

The Read Mailbox action properties: Select POP3/IMAP credentials, Filter, Unread, Has attachments, Result, Invalid Emails and Attachments

  1. In Select POP3/IMAP credentials, pick the mailbox credential. If it does not exist yet, the selector has a shortcut to create it in the Credentials Manager.
  2. Write your filters in Filter (see Filter rules), and tick Unread or Has attachments if needed.
  3. Map Result to a process variable of the data model InboundEmailInformation, marked as a list.

Read Mailbox configured with a filter and the resultedEmails output variable

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Select POP3/IMAP credentialsInputCredentialYesThe SMTP Inbound credential of the mailbox.
FilterInputTextNoOne filter per line. Empty = all emails.
UnreadInputBoolean (true/false)NoOnly unread emails. Has no effect on POP3. Default false.
Has attachmentsInputBoolean (true/false)NoOnly emails with attachments. Default false.
ResultOutputList of InboundEmailInformationYesThe emails read.
Invalid EmailsOutputList of InboundEmailInformationNoThe emails that could not be processed.
AttachmentsOutputList of FileNoThe attachments of the emails read.

Each email in Result has the fields id, subject, to, cc, bcc, sender, body, status, size, sendDate, importanceLevel and fileIndexes. fileIndexes lists the positions, in Attachments, of that email's attachments.

Filter rules

You can filter by:

  • subject, from, body
  • to, cc, bcc
  • deliveredAfter, deliveredBefore, deliveredOn: emails received after, before or on a date

Rules:

  • Put each filter on its own line.
  • After the filter name, write a colon (:) or a space: from: name@example.com and from name@example.com are the same.
  • Filter names are not case sensitive: FROM, from and From all work.
  • Date format for the date filters: YY/MM/DD or MM/DD/YY.
  • A part of a value is enough: from: name234 matches name234@test.com.
  • With no filter, all emails are read.

Example:

from: name234@test.com
deliveredAfter 2022-09-02
subject My subject

This reads the emails received after 2 September 2022, from name234@test.com, whose subject contains My subject.

Good to know

  • Unread has no effect on POP3: the POP3 protocol does not track read status.
  • If the credential is missing or invalid, the step fails with "Invalid credentials."
  • Use the fileIndexes of an email to find its files in Attachments, for example inside a For Each over Result.

On this page