Help: SSL in PoP3 connection VB.NET 2

  • Thread starter Thread starter webmaster
  • Start date Start date
W

webmaster

Request for assistance:

I'm in process of writing a PoP3 class in VB.NET 2 (VS 2005), and have
successfully managed to create a sub which will create a connection to
a PoP3 server on port 110 to download any waiting messages. I don't
want to use a pre-built component if at all possible. The following
code initiates the connection to the server and opens the stream for
input.


Dim TCP As Net.Sockets.TcpClient
Dim POP3Stream As System.IO.Stream
Dim inStream As System.IO.StreamReader

TCP = New Net.Sockets.TcpClient
TCP.Connect(strServer, 110)

POP3Stream = TCP.GetStream
inStream = New System.IO.StreamReader(POP3Stream)
[etc]

QUESTION: I also need to build SSL functionality into this application
to retreive messages from a service such as Google Email. I've found
the SSLStream class, but I'm unsure of how to implement this as I've
had no experience of native SSL functionality. I wondered if anyone
might be able to assist or point me in the right directions. Thanks
for your help.
 
Hi there,

The .NET framework only supports SSL for HTTP. If you want to use SSL
for
another protocol, you'll have to use a 3rd party product.

There is / was a free SSL/TLS library for .Net here:

http://www.mentalis.org/soft/projects/seclib/

I hope that this gets you moving in the right direction

Cheers

The Frog
 
Back
Top