Get Single E-mail
This activity causes logging in to the indicated mail account on the server and downloads an e-mail message from the e-mail box (POP3/IMAP server). One cannot point to a specific folder in the mailbox - Wizlink® sees the inbox as an undivided whole. To receive another message one should delete the previous one (put a tick in the Delete source message box on the activity). Using OAuth you should fill in the Emailbox Name if you want to reach another mailbox with granted privileges (e.g. a shared mailbox)
NOTE: we recommend using IMAP protocol because of some limitations on POP3 protocol (Wizlink may ends in fail when the checkbox Delete Source Message is on and you use Microsoft - because POP3 protocol actually deletes mail from server only after clean disconnection, so Wizlink has to disconnect and reconnect, and Microsoft forbides connecting for some time after 20 or so reconnecting action).
NOTE: the activity works properly as long as no other program nor human uses the same mailbox as Wizlink.
Parameter name | Parameter Type | In/Out | Description |
---|---|---|---|
Alternative Scenario If Failed | Boolean | Input | checkbox; default is "on" |
Application ID | String | Input | string expression from Azure Active Directory (applies to Microsoft services) or Google Cloud (applies to Google services) obtained after the application registration process |
Client Secret | String | Input | string expression from Google Cloud obtained after the application registration process |
ContentsFolder | String | Input | folder on computer disk where messages will be saved (direct path or variable) |
DisplayName | Literal | Input | you can change the name of activity for greater clarity of the scenario |
Emailbox Name | String | Input | (optional) name of the mailbox in a form of email address (local part, symbol "@" and domain) |
EncryptionMethod | Dropdown | Input | select the appropriate option from the dropdown list |
IsMessageToBeDeletedOnServer | Boolean | Input | checkbox in the activity window; on is True, off is False |
IsMessageToBeSaved | Boolean | Input | checkbox in the activity window; on is True, off is False |
Login | String | Input | login |
Password | String | Input | password (string expression) |
Port | Int32 | Input | number of port |
Protocol | Dropdown | Input | select the appropriate option from the dropdown list |
Provider | Dropdown | Input | select the appropriate option from the dropdown list |
ServerAddress | String | Input | address of e-mail server the robot logs on to |
SourcePath | String | Input | path to the directory or file, where from you download email (Source: Directory/File) |
Tenant ID | String | Input | string expression from Azure Active Directory obtained after the application registration process |
Timeout | Int32 | Input | set time in seconds to connect to email server; if the connection fails - the activity will return "false" |
Use OAuth | Boolean | Input | checkbox; default is "off" |
AttachmentPaths | String[] | Output | path to attachment files |
Body | String | Output | content of the message |
CC | String | Output | address of the secondary recipient |
From | String | Output | sender address |
MessageId | String | Output | message ID |
MessagePath | String | Output | path to body file |
ReceivedTimeStamp | DateTime | Output | timestamp of received message |
Reply To | String[] | Output | Original reply to address |
Result | Boolean | Output | returns the Boolean value: it will return True if no error is in activity, otherwise it will return False |
Result Code | Int32 | Output | Result Code will return 0 if there is no error in activity, otherwise in most cases it will return 1, the extended result code will show only in several chosen activities |
Title | String | Output | title of the message |
To | String | Output | email address of recipient |