如何从 Office Mail App 获取电子邮件 header (该应用程序的目的是显示 header 中找到的一些信息)?我未能找到任何有用的文档或示例。
作为电子邮件标题,我指的是如下所示的文本:
Received: from abc (def) by ghi (jkl) with mno; pqr
From: abc <def>
To: ghi <jkl>
Subject: mno
Date: pqr
Message-ID: <stu>
Accept-Language: vwx
Content-Language: yza
我所说的 Outlook 邮件应用程序是指通过选择 Visual Studio 2013 Update 3 - File - New - Project - Templates - Visual C# - Office/SharePoint - Apps - Apps for Office
创建的项目,选择Mail
作为应用程序类型并清除除 Email message: Read form
之外的所有内容作为应用程序出现的位置。
最佳答案
您可以使用 Mailbox.makeEwsRequestAsync 方法 ( https://msdn.microsoft.com/en-us/library/office/fp161019.aspx ) 向 Exchange 服务器发出请求以获取电子邮件 header 。
您可以在此答案中找到 EWS header 请求的示例:Read email headers in Outlook Web Access (OWA)
关于javascript - 如何在 Outlook App 中获取电子邮件标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25281483/