将电子邮件另存为MSG文件,不使用Outlook(COM对象等)或第三方软件 [英] Save Email as MSG file without using Outlook (COM object, etc.) or 3rd party software

查看:757
本文介绍了将电子邮件另存为MSG文件,不使用Outlook(COM对象等)或第三方软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我正在使用带有PowerShell的Exchange Web Services API从特定的电子邮件中进行交换,并将其另存为EML文件。这很好然而,用户/客户需要电子邮件为msg格式。有两种方法可以这样做:

Right now, I'm using the Exchange Web Services API with PowerShell to pull down specific emails from exchange and save them as EML files. This works great; however, the user/customer requires the emails to be in msg format. There are two ways that I've seen to do this:

  • Use Outlook/Outlook COM Object
  • Use a 3rd party library or software (like this: http://www.independentsoft.de/exchangewebservices/tutorial/downloadmessagetomsgfile.html)

还有其他选择吗?如果可能,我想坚持使用PowerShell,但似乎EWS可能仅限于编写EML文件。

Are there any other alternatives? I would like to stick with PowerShell if possible, but it seems like EWS might be limited to writing EML files.

MSG对EML要求(合规性)没有灵活性)

There is no flexibility on the MSG vs EML requirement (compliance).

编辑:
这将在服务器上运行;所以我宁愿在没有安装Outlook的情况下完成这个任务。

This will be run on a server; so I would prefer if this could be done without having Outlook installed.

推荐答案

你仍然可以在PowerShell中使用Outlook对象模型OOM),如果这是你希望的。

You can still use PowerShell with the Outlook Object Model (OOM), if that's what you are hoping for.

您还可以使用赎回,它具有比OOM更多的功能(也可以在服务中运行,不会触发Outlook安全提示等)。

You can also use Redemption, which has more features than OOM (it can also be run in a service, doesn't fire Outlook security prompts, etc.).

这篇关于将电子邮件另存为MSG文件,不使用Outlook(COM对象等)或第三方软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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