Skip to content

Retrieve Email

Function Description

TIP

Retrieve email from the specified mailbox

Configuration Item Description

General

Command Input

  • Email TypeInteger: Send email messages using different email types

  • IMAP Serverstring: Enter the specified IMAP server

  • IMAP PortInteger: Enter the specified IMAP port number

  • Enable SSLBoolean: Specify whether SSL should be used to send messages

  • SSLInteger: Can switch between different secure socket protocols for sending

  • Email Accountstring: The user for IMAP server authentication, usually the email account

  • Authorization Codestring: The authorization code for IMAP server authentication, usually requires SMS verification to enable, some email services may use account password instead, depending on the email service provider

  • Number of EmailsInteger: Retrieve the top N emails from the mailbox

  • Only Unread EmailsBoolean: Retrieve only unread emails

  • Save Email AttachmentsBoolean: Whether to save email attachments

  • Save Folderstring: Path to save attachments

Command Output

  • Save Email List ToTList<TMailMessage>: Specify a variable name to store the retrieved email list

Advanced

  • Folder Namestring: Folder name

  • Mark as ReadBoolean: After retrieving emails, mark them as read

  • Content in Senderstring: Content in the sender field

  • Content in Recipientstring: Content in the recipient field

  • Content in Subjectstring: Content in the subject line

  • Content in Bodystring: Content in the body of the email

  • Delay Before(milliseconds)Integer: The waiting time before instruction execution

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None