Email Automation command
- Updated: 2021/10/19
Email Automation command
Use the Email Automation command to automate tasks for the mail server and incoming messages.
Email Automation command enables you to automate mail server operations and handle incoming email messages. You can automate the following tasks:
- Manage incoming email messages and download attachments to specific folders.
- Clear unwanted email messages.
- Communicate with the mail server and monitor email activity.
- Extract email data (Subject, Message, From:, To: , CC:, and attachments) to applications (Excel, Word, Notepad, and others) or to folders on your computer.
- Select one of these options: IMAP, POP3, EWS or EWS with OAuth servers.
- Organize email messages based on status (All, Read, and Unread).
- Select either HTML or Plain text formats for email messages.
To learn more, search for the Automating Email Using the Email Command course in Automation Anywhere University: RPA Training and Certification (A-People login required).
Do the following operations using the Email Automation command:
- Get All Messages
- Downloads all, read, or unread email messages and attachments from the mail server to a specified folder on your computer. See, Get email from a mail server.
- you can use the Email Sent Date and Email Sent Time variables in your task to manage your email automation loop.
- Attachments are downloaded automatically. It is not optional.
- Starting with Version 11.3.1, you can download attachments with a filename that includes special characters, except for quotation marks ("").
- Starting with Version 11.3.2, you can download attachments where the filename is in Korean.
- Starting with Version 18.104.22.168, even if an attachment with same filename and file extension with different case already exists in the selected folder, the latest downloaded attachment is saved with the same filename suffixed with a numeric value and does not overwrite the existing file.
- By default, the most recently downloaded files overwrite older files. To ensure that all downloaded files are available, clear the Overwrite File(s) check box located at the bottom-right of the window.
Note: Configure the email server to have sufficient time-out so that you are not logged out when the task is running.
- Delete All Messages
- Deletes all email messages from the mail server. See, Delete emails from a mail server.
- Delete Message
- Deletes the email message from the Inbox. Use together with the Get All Messages or Each Email Message on Server Loop command to delete emails one by one based on conditions.
Tip: In the above mentioned commands, press the F2 key to insert a Credential Variable for enhanced security. Read more about Assigning credential variables from credential lockers.
If you have issues in sending or accessing emails, see Email Automation/Send Email Command - Not able to send emails or access email from specified mail box (A-People login required).