Suggestions for .NET Pop3 Library

I am looking for a .NET Pop3 email library. I need to be able to read from my Pop3 account, where I will copy all the mail to a local database.

Paid library is fine

I found aspnetPop3 to make anyone know if this is any good Any help would be a big help

+4
source share
4 answers

I tried several, and settled in Lesnikowski Mail from http://www.lesnikowski.com/mail/ . Its object model is well suited for email; the other libraries I used tried to hide the details, but in the end they just got in the way. The Lesnikowski library was robust enough to work on hundreds of installations, talking to many different types of POP3 servers.

+2
source

The Indy library was an old favorite of Delphi developers for socket programming, including SMTP and POP3. Now it was ported to C # and sources opened. You can check it out. One word of warning: the available documentation is not enough, but most of the code is pretty clear ...

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

+1
source

Rebex Secure POP3 might be fine. He has been actively developing since 2006 .

The following code shows how to download all messages from a POP3 server and save them in a 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(); 
+1
source

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

It will not only allow you to send emails (plain text / encrypted / html), but also POP3 / IMAP components. There are tons of examples in several different languages, and they are great for support if you need it.

It also has a 30-day free trial (full availability)

0
source

Source: https://habr.com/ru/post/1314271/


All Articles