T90- Automate Email Processing to distribute incoming emails to departments. |
Task Description |
Automate email processing by getting all unread messages from the server and distributing them to different departments.
T90.atmn
Note: Save the .atmn file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks. |
| Solutions |
 |
Create new task
- Click Tools -> Task Editor.
|

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Screenshot 5
|
 |
Loop for all messages on server
- Click on Email Automation -> Get All Messages command.
- Select status. Select ‘All’ to get all messages. Select ‘Read’ to get only read messages and select ‘Unread’ to get only unread messages.
- Enter the server details like hostname, user id and password.
- Select message format either HTML or Plaintext.
- Specify a folder to save the attachment.
- Save the command.
|
 |
Distributes mail to different departments
- Insert ‘If Variable’ command to check the value of $Email Subject$ variable if it contains the word ‘Order’.
- Insert ‘Send Mail’ command to send the mail to Sales department, if the above condition is true.
- Insert your user id in ‘from’ text box.
- In ‘to’ text box, insert the mail address of Sales department.
- Insert $Email Subject$ in Subject and $Email Message$ in Message.
- Save the command.
- Insert ‘Delete Message’ command if you want to delete the message from server.
- Repeat above steps to distribute the mails to marketing and support departments.
|
 |
Set trigger on task
- Save the task and close the editor.
- Click on Trigger tab.
- Select Email Message from trigger type.
- Enter the details like hostname, user id, password and time interval to check for new mails.
- Save the trigger.
- When a new mail arrives on this server for the specified user id, the task will be executed.
|
| |
When you run this task, it loops through the emails based on Email subject and sends that email to the concerned department.
|
|
 |
| We started using this product to copy data from legacy system to new system. Now we use it just to do about anything
automated. Countless hours saved. Thank you guys. |
- Jack Greenberg
|
| Read Customer Testimonies >> |
|