In certain instances, users may encounter emails that have been saved in a file folder, therefore these cannot be accessed directly. As a consequence, these emails must be opened in order to be read. However, complications may arise when attempting to extract specific data from these emails. In such cases, selectors may prove to be ineffective and more advanced techniques, such as string manipulation, may be necessary to retrieve the desired information.
This activity allows you to read a .eml file (email file) and to convert it into a .Net MailMessage object. The .Net object can be handled in any RPA workflow as your automation requires.
There are 2 inputs needed:
EmailFileName - this is the filename of the email we need to convert (must be an .eml file).
EmailFilePath - the path to the directory containing the .eml file.
The activity will generate one output:
EmailNet - which is the .Net object MailMessage and can be used with other existing mail activities.
A saved emails archive can be transformed into a database table for ease of use.
Any saved .eml can be 'read' and be used as necessary (for example save the attachment or read that one too or respond to email sender automatically).
From an entire folder with .eml files you can search the one(s) corresponding to your needs (for example if you have an archive with emails containing reports, you can find the right one using this activity and looking into each MailMessage object for key words).