I am having trouble reading email body as plain text. I am using uiPath.Main.IMAP.Activities.GetIMAPMailMessage to read emails of my gmail account. Everything seems working file except the body which I read through Mail.Body gives me content with html tags.
Is there a direct way in uiPATH itself to get the readable text instead of html content of it?
Here is how I am trying to get email attachment and body…
How to get the mail body as it is…
eg: My mail body is
Hello
World
but I am getting the output as
HelloWorld
Does anyone know how to solve this issue. @sreekanth@bantuk
First Replace br , div , tr tags with Enviornment.Newline and then replace the string with Regex.Replace(msg.Body,“<.*?>”,string.Empty)…This gives the plain text in correct format.
I am using the Get IMAP Mail Messages activity, and I am trying to get the email body. However i am getting an empty message box. Can someone tell how to extract the mail body?