开发者

how to get a mail in windows forms that means pop3 coding [duplicate]

开发者 https://www.devze.com 2022-12-14 21:41 出处:网络
This question already has answers here: Closed 12 years ago. 开发者_如何转开发 Possible Duplicate:
This question already has answers here: Closed 12 years ago. 开发者_如何转开发

Possible Duplicate:

Reading Email using Pop3 in C#

i was checked out for sending a email....it was working....but i want to know how to receive a email in my windows forms


Depending on your requirement there are several POP3 libraries that do the job just fine (see below). If you only need to do very, very simple things (like - checking for new mail and displaying a "You got Mail!" (TM) baloon or displaying the count of mails on the server) I'd even say "Look at the RFC 1939".

POP3 is text based and consists of only a handful commands. It might be as easy as sending a USER, PASS and STAT to the server to accomplish what you want. If you're building a complete mail client though you're probably better off looking at an existing implementation and focussing on your application's functionality without spending much time on the protocol.

Some results for "C# POP3 libraries":

  • http://www.spartanweb.co.uk/dotNet/mail.aspx
  • http://www.codeproject.com/KB/IP/pop3library.aspx


The way you can done is by having your application to get the email by connecting to the mailbox on the server using pop3.

you can use the Afterlogic Mailbee.net Objects to retrieve email from a pop3 server.It is easy to use.


For POP3 one of the best libraries I've used is Indy Sockets. It's been around since Delphi 4 so is very mature - a grandaddy of the Open Source world. It has since been rewritten as a .NET library and provides you with APIs for

  • POP3
  • SMTP (if you don't want to use System.Net)
  • IMAP 4

You could write your own POP3 library if the specification excites you, but you'll be reinventing what is now a Formula One wheel with gold plated alloys on it.

0

精彩评论

暂无评论...
验证码 换一张
取 消