?
Solved

Get Email from pop?

Posted on 2004-11-10
3
Medium Priority
?
264 Views
Last Modified: 2010-04-23
Hello

How can I read the emails from a pop-account?

Thanks

Daniel
0
Comment
Question by:Dumdidum
1 Comment
 
LVL 28

Accepted Solution

by:
iboutchkine earned 280 total points
ID: 12547962
check this
http://www.4guysfromrolla.com/webtech/092201-1.shtml
and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncodefun/html/code4fun03282003.asp

also try this code. It will get you started

Imports System.Net.Sockets


        Dim szData() As Byte
        Dim SReader As System.IO.StreamReader
        Dim Data As String

        Dim POP3Srvr As TcpClient = New TcpClient("mail.attbi.com", 110)

        Dim NetStrm As System.IO.Stream = POP3Srvr.GetStream()
        SReader = New System.IO.StreamReader(POP3Srvr.GetStream())
        Console.WriteLine(SReader.ReadLine())


        Data = "USER " & username & vbCrLf
        szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray())
        NetStrm.Write(szData, 0, szData.Length)
        Console.WriteLine(SReader.ReadLine())

        Data = "PASS " & password & vbCrLf
        szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray())
        NetStrm.Write(szData, 0, szData.Length)
        Console.WriteLine(SReader.ReadLine())


        Data = "STAT" & vbCrLf
        szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray())
        NetStrm.Write(szData, 0, szData.Length)
        Console.WriteLine(SReader.ReadLine())

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question