Email

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).

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.

v2_email_get
Parameter NameParameter TypeIn/OutDescription
Alternative Scenario If FailedBooleanInputcheckbox; default is "on"
Application IDStringInputstring expression from Azure Active Directory (applies to Microsoft services) or Google Cloud (applies to Google services) obtained after the application registration process
Client SecretStringInputstring expression from Google Cloud obtained after the application registration process
Delete from ServerBooleanInputbox in Properties window and checkbox in the activity window; on is True, off is False
Display NameLiteralInputyou can change the name of activity for greater clarity of the scenario
Encryption MethodDropdownInputselect the appropriate option from the dropdown list
Exclude from Transaction CheckBooleanInputcheckbox; default is "off"
Local Folder Source PathStringInputpath to the directory or file, where from you download email (Source: Directory/File)
LoginStringInputlogin
PasswordStringInputpassword (string expression)
PortInt32Inputport number
ProtocolDropdownInputselect the appropriate option from the dropdown list
ProviderDropdownInputselect the appropriate option from the dropdown list
Save MessageBooleanInputbox in Properties window and checkbox in the activity window; on is True, off is False
Server AddressStringInputaddress of e-mail server the robot logs on to
Short Message Folder NameBooleanInputcheckbox, default is "off"
Target Save FolderStringInputfolder on computer disk where messages will be saved (direct path or variable)
Tenant IDStringInputstring expression from Azure Active Directory obtained after the application registration process
Timeout [s]Int32Inputset time in seconds to connect to email server; if the connection fails - the activity will return "false"
Use OAuthBooleanInputcheckbox; default is "off"
Attachment PathsString[]Outputpath to attachment files
BodyStringOutputcontent of the message
CCStringOutputaddress of the secondary recipient
FromStringOutputsender address
Message IdStringOutputmessage ID
Message Received Time StampDateTimeOutputtimestamp of received message
Reply ToString[]Outputoriginal reply to address
ResultBooleanOutputreturns the Boolean value: it will return True if no error is in activity, otherwise it will return False
Result CodeInt32OutputResult 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
Saved Message PathStringOutputpath to body file
TitleStringOutputtitle of the message
ToStringOutputemail address of recipient