asp.net - Receive emails using pop3 -
i trying receive emails using pop3. can not utilize "openpop.dll" because can utilize .net 4.0.
i can reader not know how create printout of reader does.
what want way calculate these 4 items: from, subject, received , size each email.
the email calculate.
dim client tcpclient dim clientstream stream dim author system.io.streamwriter dim reader system.io.streamreader dim host, email, pass string dim port integer dim ssl boolean host = "pop3.email.com" email = "this@email.com" pass = "pass1" port = 995 if client nil client = new tcpclient() end if if not client.connected client.connect(host, port) end if if ssl = true dim securestream new system.net.security.sslstream(client.getstream()) securestream.authenticateasclient(host) clientstream = securestream securestream = nil else clientstream = client.getstream() end if author = new streamwriter(clientstream) reader = new streamreader(clientstream)
even though it's written in c# there open source pop3 implementation might give pointers on how implement that:
http://www.codeproject.com/articles/21377/net-pop-mime-client
if want implement suggest brush pop3 knowledge:
http://www.ietf.org/rfc/rfc1939.txt
asp.net vb.net pop3
No comments:
Post a Comment