Loop through emails saved in a folder

Hy All,

I need to look through a bunch of email, the problem is that those emails are not in outlook, but are saved in a folder outside Microsoft Outlook, like this:

I need to loop through the emails and extract the sender, header and attachments. How can this be done?

Thanks in advance

Have you tried for each item in directory and use mail activities on each item? Play with the TypeArgument property.

Hy @Matt_S,

I have tried that and it did not worked.
I tried Directory.getFiles(), it return an array of strings, but I cannot get the email property.
I tried MailMessage, but I could not loop through it using for each :frowning:

Try this post: