从Outlook邮件主体获取STANDARD Html [英] Getting STANDARD Html from Outlook mailbody

查看:125
本文介绍了从Outlook邮件主体获取STANDARD Html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Outlook AddIn,我必须获取Outlook邮件并将其存储在一个控件中,该控件可以根据我的要求进行操作。

代码如下:



I am working on a Outlook AddIn where I have to get the Outlook mailbody and store it in a control which can be manipulated for my requirement.
The code is like this:

Outlook.Application oApp = new Outlook.Application();
Outlook.Explorer oExplorer = oApp.ActiveExplorer();
Outlook.Selection oSelection = oExplorer.Selection;
foreach (object item in oSelection)
{
htmlEditor1.Html = mailItem.HTMLBody;
}





我检查了htmlbody格式使用





I checked for htmlbody format using

oldMailItem.BodyFormat.ToString();





它提供的olFormatHTML与标准HTML不同。



如何从Outlook获取标准HTML?



It is giving olFormatHTML which is different from standard HTML.

How I can get the standard HTML from Outlook ?

推荐答案

参见 https://msdn.microsoft.com/en-us/library/office/ff864792.aspx [<一个href =https://msdn.microsoft.com/en-us/library/office/ff864792.aspx\"target =_ blanktitle =New Window> ^ ]。


这篇关于从Outlook邮件主体获取STANDARD Html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆