使用 webdav 创建带有 html 正文的 Outlook 约会
我正在使用 webdav 创建 Outlook 约会。我正在使用以下帖子正文来创建约会。
<?xml version="1.0"?>
<g:propertyupdate xmlns:g="DAV:"
xmlns:e="http://schemas.microsoft.com/exchange/"
xmlns:mapi="http://schemas.microsoft.com/mapi/"
xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/"
xmlns:x="xml:"
xmlns:cal="urn:schemas:calendar:"
xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:colors="http://schemas.microsoft.com/mapi/id/{00062002-0000-0000-C000-000000000046}/"
xmlns:header="urn:schemas:mailheader:"
xmlns:mail="urn:schemas:httpmail:"
>
<g:set>
<g:prop>
<g:contentclass>urn:content-classes:appointment</g:contentclass>
<e:outlookmessageclass>IPM.Appointment</e:outlookmessageclass>
<mail:subject>Test</mail:subject>
<mail:htmldescription><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html><body>
<table>
<tr><td>Telefonnummer:</td>
<td><b>123123423453245</b></td></tr>
<tr><td>Name</td>
<td style="color:red;">Hille, Christian</td></tr>
</table>
</body>
</html>
</mail:htmldescription>
<cal:location></cal:location>
<cal:dtstart dt:dt="dateTime.tz">2009-10-05T14:37:17.000Z</cal:dtstart>
<cal:dtend dt:dt="dateTime.tz">2009-10-05T14:52:17.000Z</cal:dtend>
<cal:busystatus>BUSY</cal:busystatus>
<cal:reminderoffset dt:dt="int">900</cal:reminderoffset>
<colors:0x8214 dt:dt="int">10</colors:0x8214>
</g:prop>
</g:set>
</g:propertyupdate>
约会已创建。但 Outlook 不显示 html 格式的文本。粗体文本采用粗体格式。表和样式属性将被忽略。
Outlook 支持 html 正文格式吗?如何在约会正文中显示表格?
I'm creating outlook appointments using webdav. I'm using following post body to create the appointment.
<?xml version="1.0"?>
<g:propertyupdate xmlns:g="DAV:"
xmlns:e="http://schemas.microsoft.com/exchange/"
xmlns:mapi="http://schemas.microsoft.com/mapi/"
xmlns:mapit="http://schemas.microsoft.com/mapi/proptag/"
xmlns:x="xml:"
xmlns:cal="urn:schemas:calendar:"
xmlns:dt="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:colors="http://schemas.microsoft.com/mapi/id/{00062002-0000-0000-C000-000000000046}/"
xmlns:header="urn:schemas:mailheader:"
xmlns:mail="urn:schemas:httpmail:"
>
<g:set>
<g:prop>
<g:contentclass>urn:content-classes:appointment</g:contentclass>
<e:outlookmessageclass>IPM.Appointment</e:outlookmessageclass>
<mail:subject>Test</mail:subject>
<mail:htmldescription><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html><body>
<table>
<tr><td>Telefonnummer:</td>
<td><b>123123423453245</b></td></tr>
<tr><td>Name</td>
<td style="color:red;">Hille, Christian</td></tr>
</table>
</body>
</html>
</mail:htmldescription>
<cal:location></cal:location>
<cal:dtstart dt:dt="dateTime.tz">2009-10-05T14:37:17.000Z</cal:dtstart>
<cal:dtend dt:dt="dateTime.tz">2009-10-05T14:52:17.000Z</cal:dtend>
<cal:busystatus>BUSY</cal:busystatus>
<cal:reminderoffset dt:dt="int">900</cal:reminderoffset>
<colors:0x8214 dt:dt="int">10</colors:0x8214>
</g:prop>
</g:set>
</g:propertyupdate>
The appointment is created. But outlook does not display the text as formated in html. The bold text is formated bold. The table and the style attribute are ignored.
Does outlook support html body formating? How to display the table in appointment body?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
做了一些研究。
不支持使用 webdav 进行完整的 html 格式化。支持一些基本的 html 标签(
、
),但不支持表格。
高级格式化只能使用 rtf 格式化。
但是 rtf 格式的约会无法通过 webdav 访问。执行此操作时您将收到 http 502 错误。
了解更多:
http://www.outlookcode.com/threads.aspx?forumid= 2&messageid=6599
http://blogs.msdn.com/deva/archive/2008/07/16/kb-application-support-for-webdav-to-access-exchange-server.aspx
Did some research.
There is no support to full html formating using webdav. Some basic html tags are supported (
<b>
,<i>
) but tables are not.Advanced formating is only possible using rtf formating.
BUT rtf formated appointments are not accessible through webdav. You will get a http 502 error doing this.
Read more:
http://www.outlookcode.com/threads.aspx?forumid=2&messageid=6599
http://blogs.msdn.com/deva/archive/2008/07/16/kb-application-support-for-webdav-to-access-exchange-server.aspx