是否有任何编程方式可以将电子邮件恢复到 Office 365?
Is there any programmatic way to restore email to office 365?
我正在尝试将电子邮件恢复(将电子邮件备份为 .eml 文件)到应用程序用户的收件箱或任何用户定义的具有管理员身份验证的邮件文件夹。面临以下问题。
- 我可以使用 EWS managed API 导入 .eml 文件,但它不显示实际的 date/time 电子邮件,而是在我上传时显示 date/time。
我必须使用本机客户端应用程序才能将 OAuth 与 EWS 结合使用,是否有任何方法可以将 Web App 与 EWS 结合使用。
还有一种下载数据的方法,Microsoft Graph API。如果我可以使用 MS Graph API 导入电子邮件,有什么办法吗?
Outlook Mail REST API 用于备份邮件,这里没有列出用于恢复的 API。
I am able to import .eml file using EWS managed API, but it doesn't shows actual date/time of email, instead it shows date/time when I have uploaded.
是的,因为在导入文件时,EWS 会创建一个新的消息项。电子邮件的创建时间将是服务器的当前时间。
I have to use Native client application to use OAuth with EWS, Is there any way to use Web App with EWS.
是的,正如@Glen Scales 在 中所说,尝试使用 O365 的以下端点:
service.Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx");
Is there any way if I can use MS Graph API for import email.
据我所知,目前,Microsoft Graph Api 不支持。您可以使用应用程序 read the content/attributes of the eml file 并通过 api 创建新消息(图 api/outlook 邮寄 api)。但新消息的创建时间也将是服务器当前时间。
不,Microsoft Graph API 没有 API 可以将电子邮件还原回用户邮箱。目前,还没有添加此功能的计划。看看 How to: Import items by using EWS in Exchange 看看这是否满足您的需求。
我正在尝试将电子邮件恢复(将电子邮件备份为 .eml 文件)到应用程序用户的收件箱或任何用户定义的具有管理员身份验证的邮件文件夹。面临以下问题。
- 我可以使用 EWS managed API 导入 .eml 文件,但它不显示实际的 date/time 电子邮件,而是在我上传时显示 date/time。
我必须使用本机客户端应用程序才能将 OAuth 与 EWS 结合使用,是否有任何方法可以将 Web App 与 EWS 结合使用。
还有一种下载数据的方法,Microsoft Graph API。如果我可以使用 MS Graph API 导入电子邮件,有什么办法吗? Outlook Mail REST API 用于备份邮件,这里没有列出用于恢复的 API。
I am able to import .eml file using EWS managed API, but it doesn't shows actual date/time of email, instead it shows date/time when I have uploaded.
是的,因为在导入文件时,EWS 会创建一个新的消息项。电子邮件的创建时间将是服务器的当前时间。
I have to use Native client application to use OAuth with EWS, Is there any way to use Web App with EWS.
是的,正如@Glen Scales 在
service.Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx");
Is there any way if I can use MS Graph API for import email.
据我所知,目前,Microsoft Graph Api 不支持。您可以使用应用程序 read the content/attributes of the eml file 并通过 api 创建新消息(图 api/outlook 邮寄 api)。但新消息的创建时间也将是服务器当前时间。
不,Microsoft Graph API 没有 API 可以将电子邮件还原回用户邮箱。目前,还没有添加此功能的计划。看看 How to: Import items by using EWS in Exchange 看看这是否满足您的需求。