Page 1 of 1

How to retrieve POP3 emails in VB.Net

Posted: Sun Apr 25, 2010 3:33 am
by Neo
Add the class attached in the ZIP file to your project and use it as below.

Code: Select all

Dim mail As New Pop3Mail

mail.Connect("mail.xxxx.net", "user", "password")

For Each msg As Pop3Mail.Pop3Message In mail.List

    Trace.WriteLine(DirectCast(mail.Retrieve(msg), Pop3Mail.Pop3Message).message)

Next
Pop3Mail.zip
(1.14 KiB) Downloaded 581 times

Re: How to retrieve POP3 emails in VB.Net

Posted: Wed Nov 17, 2010 1:55 pm
by LeeShane
you can start by first create a new instance of the TcpClient, and attempt to connect to the POP3 server.
Dim tcpClient As New TcpClient()
tcpClient.Connect(fld_Server.Text, Convert.ToInt32(fld_Port.Text))

---------------------------
<link removed>