C#脚本在文件夹中打开电子邮件附件(.msg)并下载附件。 [英] C# script to open email attachment(.msg) in a folder and download attachment.

查看:205
本文介绍了C#脚本在文件夹中打开电子邮件附件(.msg)并下载附件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以建议任何Visual Studio C#脚本从脱机文件夹(共享驱动器上的任何文件夹)中的/ msg文件下载附件。

Could any one suggest any Visual studio C# script to download the attachment from the /msg file in an offline folder (any folder on shared drive).

我看过很多来自邮件服务器的脚本,但我需要打开离线的.msg并下载附件。

I have seen many scripts from the mail server but I need to open .msg which is offline and download the attachment.

谢谢

AmanM

推荐答案

以下不处理下载,仅从.msg文件中提取。我只将其用于单元测试。

The following does not handle downloading, only extraction from .msg files. I've used it solely for unit test.

请参阅MsgReader - 第一个链接中有样本。 

See MsgReader - there are samples in the first link. 

源代码: https://github.com/Sicos1977/MSGReader

NuGet:  https://www.nuget.org/packages/MSGReader/

NuGet: https://www.nuget.org/packages/MSGReader/


这篇关于C#脚本在文件夹中打开电子邮件附件(.msg)并下载附件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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