Question POP3 Connecting and retrieving

graham23s

Member
Joined
Feb 22, 2009
Messages
13
Programming Experience
1-3
Hi Guys,

I am coding a small application to connetc to a pop3 sever via tcpClient:

VB.NET:
                '// INITIATE THE TCPCLIENT AND CONNECT TO THE POP3 SERVER
                Dim myTcpClient As New TcpClient()
                myTcpClient.Connect(txtBoxMailServer.Text, Convert.ToInt32(txtBoxPort.Text))
                '// ...
                Dim myNetStream As NetworkStream = myTcpClient.GetStream()
                Dim myStrReader As New StreamReader(myNetStream)

                '// DID WE CONNECT OK?
                If (myTcpClient.Connected = True) Then


                Else
                    'MessageBox.Show("not connected")
                End If

I have looked at the few tutorials i could see but i am having trouble with the send command, i am trying to retrieve the email messages in a listview, is there any tutorials for vb.net on this at all anyone can recommend? i see loads for c#

cheers guys

Graham
 
Back
Top