寻找 C# 中具有 SSL 支持的 pop3 reader 类

发布于 2024-09-09 10:38:28 字数 142 浏览 5 评论 0 原文

我环顾四周,有几个项目,但它们似乎都已经过时了, 我应该使用那些吗?或者是否有一个新的开箱即用的 pop3 类,我在 msdn 中找不到。 无论如何,我不是在做一个需要发送的客户端,所以不需要 SMTP,更像是一个整理电子邮件并阅读它们的机器人。有什么想法吗? 干杯!

I was looking around and there is couple of projects but they all seem to be outdated,
should i use those? or is there a new out the box pop3 class that I can't find in msdn.
anyhow i'm not doing a client that needs to send out so no SMTP is needed, more like a bot that sorts out the emails and reads them., any ideas?
Cheers!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

伤感在游骋 2024-09-16 10:38:28

查看 Mail.dll POP3 客户端。它支持SSL,易于使用,并且支持解析复杂的MIME结构:

using(Pop3 pop3 = new Pop3())
{
    pop3.ConnectSSL("pop3.server.com");              
    pop3.Login("user", "password");

    foreach (string uid in pop3.GetAll())
    {
        IMail email = new MailBuilder()
            .CreateFromEml(pop3.GetMessageByUID(uid));
        Console.WriteLine(email.Subject);
    }
    pop3.Close(true);
}               

请注意,这是我开发的商业产品

您可以在这里下载Mail.dll:
http://www.lesnikowski.com/mail/

Take a look at Mail.dll POP3 client. It supports SSL, is easy to use, and supports parsing complex MIME structures:

using(Pop3 pop3 = new Pop3())
{
    pop3.ConnectSSL("pop3.server.com");              
    pop3.Login("user", "password");

    foreach (string uid in pop3.GetAll())
    {
        IMail email = new MailBuilder()
            .CreateFromEml(pop3.GetMessageByUID(uid));
        Console.WriteLine(email.Subject);
    }
    pop3.Close(true);
}               

Please note that this is a commercial product that I developed

You can download Mail.dll here:
http://www.lesnikowski.com/mail/

马蹄踏│碎落叶 2024-09-16 10:38:28

我在另一个 OpenPOP /did-openpop-net-with-gmail-attachments-break-recently">thread,这似乎是我目前为这项任务选择的库。

I discovered OpenPOP on another thread, which seems to be my library of choice at the moment for this very task.

孤独难免 2024-09-16 10:38:28

几年前我构建了一个,发布在代码项目上,并且已注明日期(http:// /www.codeproject.com/KB/IP/NetPopMimeClient.aspx)。如果您有兴趣,我可以向您发送从未发布到 CP 的最新源代码的副本。

我最终使用 Dart Mail 作为我在 CP 上开发的解决方案的替代品。我最终使用 Dart Mail 的主要原因是它具有 Mime 解析功能,这实际上最终成为我开发的解决方案的主要问题。 IIRC Dart Mail 相当合理,如果您需要强大的东西,可能值得一看。

I built one a few years back that's posted on code project and it is dated (http://www.codeproject.com/KB/IP/NetPopMimeClient.aspx). If you are interested I can send you a copy of the latest source code which was never posted to CP.

I ended up using Dart Mail as a replacement for the solution I developed posted on CP. The main reason I ended up using Dart Mail is for the Mime Parsing facilities that it has which really ended up being the main problem with the solution I developed. IIRC Dart Mail is pretty reasonable and may be worth a look if you need something that is robust.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文