Email (Custom) OPA - Retrieve emails action
The Retrieve emails action retrieves emails using IMAP or POP3 through your on-prem agent extension. With IMAP, it retrieves emails matching the search criteria from the specified mailbox. With POP3, it retrieves all emails in the mailbox. This action requires IMAP or POP3 configuration.
Input
With IMAP configured, the following input fields are available. With POP3 configured, this action doesn't require any input fields.
| Input field | Description |
|---|---|
| Mailbox | Select or enter the mailbox to retrieve emails from, for example INBOX. |
| Search criteria | Optional. Select or enter a criterion to filter the emails. Defaults to ALL if left blank. |
| Search criteria value | Optional. Enter the search value for the selected criterion, for example Testing, 01-Jan-2023, or [email protected]. The Search criteria value field isn't available for criteria that don't take a value, such as ALL or SEEN. |
Output
| Output field | Description |
|---|---|
| Emails | A list of matching emails. |
| UID (Emails) | The email's unique identifier. |
| From (Emails) | The sender of the email. |
| Date (Emails) | The date and time the email was received in the mailbox. |
| Subject (Emails) | The subject of the email. |
| Body (Emails) | The plain text message content of the email. |
| HTML body (Emails) | The HTML message content of the email, if available. |
| Attachments (Emails) | A list of attachments for the email, if applicable. Each item includes a file name and its base64-encoded content. |
Last updated: