How to read the mail body of Office365 mail message as Html
Inorder to resolve below problem, I want to read the emailbody as html.
: ‘auto downloading email signature as image’ achieve this “ Problem Save email attachments - #6 by sravani22”
The problem is getting signature image names. Solution is, read email body in html format, use regex to get image names. Use for each loop to remove the attachment from attachment collection and save remaining attachments with save attachment activity.
Is it like question with answer
My question is : How to read the mail body of Office365 mail message as Html.
Hope this thread would help you
i used “Get outlook mail messages” get html email inside outlook but “mail.Body” return string without html tag. may i get real message body?
Main.xaml (11.4 KB)
Let us know if you are looking for different one
@Palaniyappan Thanks for replying.
mail.Headers("HTMLBody") is returning null/empty for
Can you try to turn on Get As HTML property in GetMail activity as the following?
You are almost done
This will work only if GET AS HTML is enabled
Enable and give a try
@Palaniyappan , even after adding Get as Html, it is returning 0 headers.
Could you please check.
Can we see the property panel of that activity if possible
If any filter set can you validate that once without any condition
And it is marked as onlyunread
So ensure you have unread emails in your inbox
Property panel is added in my previous reply.
Verified that : Mail count returned by Get Mail activity is 1
Can you check mailmessage.Body as the following?
@Palaniyappan and @Yoichi for the support.
On enabling, and also reading the mail body as : Get as HTML property mail.Body, I am able to fetch the mail body in HTML format.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.