Unable to get the text message from the mail

Hi @yaniketz,

You are getting a blank mail body may be because it’s in html format, other than plain text.
If so, read the html mail body by mail.Headers("HTMLBody") and convert it to plain text using the regular expression, System.Text.RegularExpressions.Regex.Replace(mail.Headers("HTMLBody"),"(<.*?>)|({.*})","") or you can use the key mail.Headers("PlainText") .

Please have a look at the workflow. HTML_to_plaintext.xaml (7.1 KB)

Warm regards,
Nimin

3 Likes