Body as text

Add-in Express™ Support Service
That's what is more important than anything else

Body as text
 
calou_33 calou_33


Guest


Hello,

Is there is a way to display the text in a outlook body as text and not html?

I do
  i_selection.Item(1).QueryInterface(IID__MailItem,i_mail);
 showmessage(i_mail.body) 

but i would like to show it like text and not html.

Regards
Posted 31 Oct, 2017 08:21:53 Top
Andrei Smolin


Add-in Express team


Posts: 18819
Joined: 2006-05-11
Hello,

MailItem.Body returns the plain-text version of the body, not the HTML version.


Andrei Smolin
Add-in Express Team Leader
Posted 31 Oct, 2017 08:47:06 Top
calou_33 calou_33


Guest


It is strange because if i do a mail in text format and do a showmessage the format is good.
If i do the same thing with a mail done in html format i have a lot of carrier return

Regards
Posted 31 Oct, 2017 09:31:26 Top
Andrei Smolin


Add-in Express team


Posts: 18819
Joined: 2006-05-11
Hello,

I confirm that MailItem.Body for an email in the HTML format differs from the same email converted to the plain-text format. I suppose this is part of the Outlook functionality.


Andrei Smolin
Add-in Express Team Leader
Posted 01 Nov, 2017 03:40:33 Top
calou_33 calou_33


Guest


Thanks

Regards
Posted 03 Nov, 2017 07:25:29 Top