Why can't display IMAP messages as plain text, only HTML?


#1

Dear all,

I need to replace my get outlook mail messages activity with IMAP activity. With get outlook messages I got all my mails in simple text if i used a message box and placed mail.body.tostring inside. But now with IMAP all i get is html text. Do you know a way to convert it? I don’t see any option

Tried assigning mail.isbodyhtml = false in the for each but it doesn’t work.

Thank you for your help,

Zew


#2

Regex.Replace(source, “<.*?>”, string.Empty);


#3

Can you show me how to use this code, please? Thanks!


#4

hope you able to get html body in string format in that case
check this out.
html.xaml (7.1 KB)


#5

Thank you, I had to import system.text.regularexpressions. Works but   html tags stayed there, this expression worked for me: <[^>]+>|&nbsp ;

Thanks for the help!


#6

@zew @ddpadil I too wanted to use IMAP.Thankyou for the solution