【发布时间】:2019-02-01 17:38:19
【问题描述】:
我想在我的Node 应用程序中获取.msg 格式的电子邮件内容。目前,我发送以下 SOAP 请求以获取电子邮件的 html 版本:
const getEmailContentSOAP = `<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<RequestServerVersion Version="Exchange2013"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types"
soap:mustUnderstand="0" />
</soap:Header>
<soap:Body>
<GetItem
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<ItemShape>
<t:BaseShape>Default</t:BaseShape>
<t:IncludeMimeContent>true</t:IncludeMimeContent>
</ItemShape>
<ItemIds>
<t:ItemId Id="${emailID}" />
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>`;
有没有办法直接获取.msg 版本或将其转换为.msg?
【问题讨论】:
-
不确定这样的东西是否已经存在,但您可以随时编写自己的转换器。
标签: javascript outlook exchangewebservices outlook-addin office-addins