How to read .eml file that saved locally in my computer?

Hi UiPath,

Is there an easy way to read .eml file and save it as string?

I am planning to extract some data from its body using regex.

Thanks!

Hi @alvin.c.apostol26

  1. Use Read Text File activity.
  2. In the properties panel of the activity, set the ‘FileName’ property to the path of the .eml file you want to read.
  3. Create a new variable of type String to store the content of the .eml file.

Hope this helps,
Best Regards.

2 Likes

Never though that read file is working in .eml files.

Will try it later thank you very much @arjunshenoy

1 Like