对 .NET Pop3 库的建议

发布于 2024-09-07 18:17:24 字数 195 浏览 2 评论 0 原文

我正在寻找 .NET Pop3 电子邮件库。 我需要能够从 Pop3 帐户中读取内容,并将所有邮件复制到本地数据库。

付费图书馆很好

我发现 aspnetPop3 有人知道这是否有好处 任何帮助都会有很大的帮助

I am looking for a .NET Pop3 Email Library.
I need be able to read from a Pop3 account where I'll copy all the mail to a local database.

A paid library is fine

I found aspnetPop3 do anyone know if this any good
Any help would be a great help

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

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

发布评论

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

评论(5

要走就滚别墨迹 2024-09-14 18:17:24

我尝试了一些,最后选择了 http://www.lesnikowski.com/mail/ 的 Lesnikowski Mail 。它的对象模型非常适合电子邮件的实际工作方式;我使用的其他库试图隐藏细节,但最终只是碍事。 Lesnikowski 库足够强大,可以在数百个安装中工作,与许多不同类型的 POP3 服务器通信。

I've tried a few, and settled on Lesnikowski Mail from http://www.lesnikowski.com/mail/. Its object model is a nice fit for how email really works; other libraries I used tried to hide the details but ended up just getting in the way. The Lesnikowski library was robust enough to work across hundreds of installations, talking to many different varieties of POP3 server.

夏日落 2024-09-14 18:17:24

Indy 库是 Delphi 开发人员过去最喜欢的套接字编程(包括 SMTP 和 POP3)。现在它已被移植到 C# 并开源。您可能想检查一下。警告一句:没有太多可用的文档,但大多数代码都是不言自明的...

http://www.indyproject.org/SocketsCLR/index.EN.aspx

The Indy library was an old favorite of Delphi developers for sockets programming, including SMTP and POP3. It's now been ported to C# and open sourced. You might want to check it out. One word of warning: there isn't a lot of documentation available, but most of the code is quite self-explanatory...

http://www.indyproject.org/SocketsCLR/index.EN.aspx

贱人配狗天长地久 2024-09-14 18:17:24

我们的 Rebex Secure POP3 可能适合您。 自 2006 年以来,它一直在积极开发。

以下代码显示如何从 POP3 服务器下载所有邮件并将它们保存到数据库中:

// create client, connect and log in  
Pop3 client = new Pop3();
client.Connect("pop3.example.org");
client.Login("username", "password");

// get message list - full headers  
Pop3MessageCollection messageList = client.GetMessageList();

foreach (Pop3MessageInfo messageInfo in messageList)
{
   // download message
   MailMessage message = client.GetMailMessage(messageInfo.SequenceNumber);

   // store it to the database... 
   // depends on your DB structure. 
   // message.Save(stream) or message.ToByteArray() would be handy
   ...
}

client.Disconnect();

Our Rebex Secure POP3 might be fine for you. It's actively developed since 2006.

Following code shows how to to download all messages from the POP3 server and save them to the database:

// create client, connect and log in  
Pop3 client = new Pop3();
client.Connect("pop3.example.org");
client.Login("username", "password");

// get message list - full headers  
Pop3MessageCollection messageList = client.GetMessageList();

foreach (Pop3MessageInfo messageInfo in messageList)
{
   // download message
   MailMessage message = client.GetMailMessage(messageInfo.SequenceNumber);

   // store it to the database... 
   // depends on your DB structure. 
   // message.Save(stream) or message.ToByteArray() would be handy
   ...
}

client.Disconnect();
叹梦 2024-09-14 18:17:24

我可以推荐 http://www.chilkatsoft.com/ 及其邮件组件。

它不仅允许您发送电子邮件(纯文本/加密/html),它还具有 POP3/IMAP 组件。有大量不同语言的示例,如果您需要的话,它们会提供很好的支持。

它还提供 30 天免费试用(完整功能)

I can recommend http://www.chilkatsoft.com/ and their mail components.

Not only will it allow you to send out email (plain text/encrypted/html) it also has POP3/IMAP components. There are tonnes of examples in a number of different languages and they are great on support if you should need it.

It also has a 30 day free trial (full funationality)

拒绝两难 2024-09-14 18:17:24

MailKit.NetSmtpClient 的 Microsoft 官方替代品,也支持 Pop3Imap。它可以作为 nuget 包下载。

MailKit.Net, the official Microsoft replacement for SmtpClient also has support for Pop3 and Imap. It can be downloaded as a nuget package.

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