Email System Variables
- 최종 업데이트2020/05/05
Email System Variables
You can use Email system variables within an Email automation task to manage your email automation loop. These variables are specific to the scope of the loop that processes each email message for the server.
Manage your email automation using the e-mail variable.
For EWS, the Email Received Time variable does not include the offset value.
When you use the Loop/Email automation command (see example below), a comment in the task explains how you can use these system-defined variables.
Example 1:
- Start Loop "
Each message on server: mail.automationanywhere.com,User Name: https://support.automationanywhere.com, ServerType: IMAP, Message Format: HTML
" - Comment: Please enter your commands to loop. Use Email Automation variables for each
email on Server (For example:
$Email From$
,$Email To$
, etc.) - End Loop
Example 2:
In below example we extract emails from in-box and store them in text files. This type of task can be scheduled and emails can be retrieved offline.
- Start Loop "
5
" Times - Comment: Please enter your commands to loop.
- Start Loop "
Each message on server: imap.gmail.com, User Name: admin1, SSL, ServerType: IMAP, Message Format: HTML
" - Comment: Please enter your commands to loop. Use system variables for each email on
Server.(For example:
$Email From$
,$Email To$
, etc.) - Log to File:
$Email From$ John in "D:\Desktop\1.txt"
- Message Box: "
$Email Subject$ $Email From$
" - Variable Operation: Reset:
$Email From$
- Message Box: "
$Email Subject$
" - Variable Operation: Reset:
$Email Subject$
- End Loop
- End Loop
The variables in this example can be reset using the Variable Operation (System Variable) command. The drop-down menu offers all of the options for resetting.