I need to get the body and the subject of an .msg/.eml file, but the problem is that some of the emails contains a table in body and I would need the body in HTML, because after that I need to send another mail with that body.
I tried a lot of methods from the forum, but none of them works.
You can launch the .msg file by using use application\browser activity.
Inside of Use application\browser activity use the Extract Datatable activity to extract the table from mail and store in a datatable.
Since emailnet varaible type is of List(MailMessage). You need to run a for each loop to iterate through the mail messages and inside the loop use assign activity and give the below syntax.
The problem is that i don’t read them from Outlook. I have a folder with .msg mails and i read them with for each file in folder. Is there a way to add them to a list of MailMessage so I can use your method ? Thanks!