Check Email for Different Subjects

Check email using the "POP3 E-mail" action and populate the specified dataset with email variables

This task will check email using the "POP3 E-mail" action and populate the specified dataset with email variables. The dataset has been named mymail. When this action is run, it will list the available dataset variables which can be looped through. A "Loop Dataset" action is used to loop through the variables in the dataset created by the "POP3 E-mail" action.

The dataset used to check subjects of messages is "mymail.Subject." An IF conditional is used to evaluate mymail.Subject to see if the subject is test1. If it is, a message dialog is displayed. Another IF conditional is used to evaluate mymail.Subject again to see if the subject is test2. If it is, then another message dialog is displayed.

Note: In order for this sample to work properly, you wil need to modify the "POP3 E-mail" action's settings and send a few emails with the subject test1 and test2 to yourself before executing the task.

Task Category:

Email