By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,341 Members | 1,395 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,341 IT Pros & Developers. It's quick & easy.

POP3/SSL Question

P: n/a
I have written a POP3 class using sockets & it works perfectly fine.

When I try and check an account like Gmail, which uses SSL, my program
freezes. How do I make my POP3 class SSL compatible

Gmail info (not needed to answer this question though):

POP3: pop.gmail.com
Port: 995
SSL: Yes

Any valid suggestions (not google group searches links please Mr MVP)
Nov 21 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
MPF
Instead of reinventing the wheel, have you looked at
http://www.indyproject.org/?

If I'm not mistaken, they have a secure POP class, or some variation there
of.

"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
I have written a POP3 class using sockets & it works perfectly fine.

When I try and check an account like Gmail, which uses SSL, my program
freezes. How do I make my POP3 class SSL compatible

Gmail info (not needed to answer this question though):

POP3: pop.gmail.com
Port: 995
SSL: Yes

Any valid suggestions (not google group searches links please Mr MVP)

Nov 21 '05 #2

P: n/a
Nah, that aint no good.

I'm hardly reinventing the wheel when I have a POP3 class which functions
perfectly unless I use SSL

Anyone with a proper anwer please let me know - thanks
Nov 21 '05 #3

P: n/a
I've read your question and I'm sure I can help...

On the other hand... you are rude.

So, instead of explaining the solution nicely, I'll just give you the links.
http://aspalliance.com/articleViewer.aspx?aId=342&pId=1
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
I have written a POP3 class using sockets & it works perfectly fine.

When I try and check an account like Gmail, which uses SSL, my program
freezes. How do I make my POP3 class SSL compatible

Gmail info (not needed to answer this question though):

POP3: pop.gmail.com
Port: 995
SSL: Yes

Any valid suggestions (not google group searches links please Mr MVP)

Nov 21 '05 #4

P: n/a
Thank you for your link & sorry if you think I am rude. I just speak my mind

The reason I wrote what I did in my original post is to stop the Austrian
MVP (Herfried K. Wagner) from just doing a Google Group search & come up with
something which is no use whatsoever.

The gentleman who replied saying about not re-inventing the wheel... said it
a little late when the class has been written. Besides, I always write my own
code/classes rather than copy/paste (steal) other people's code & call it my
own.

The link you gave me looks great & no, I don't need you to talk me through
it. I do have 25 years programming experience in 5 different languages (more
actually), but never bothered until recently to get into socket programming
with VB.NET

Thanks again for the link.

"Nick Malik [Microsoft]" wrote:
I've read your question and I'm sure I can help...

On the other hand... you are rude.

So, instead of explaining the solution nicely, I'll just give you the links.
http://aspalliance.com/articleViewer.aspx?aId=342&pId=1
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
I have written a POP3 class using sockets & it works perfectly fine.

When I try and check an account like Gmail, which uses SSL, my program
freezes. How do I make my POP3 class SSL compatible

Gmail info (not needed to answer this question though):

POP3: pop.gmail.com
Port: 995
SSL: Yes

Any valid suggestions (not google group searches links please Mr MVP)


Nov 21 '05 #5

P: n/a
That article is just selling a package really, but it does give some insight.
I won't use the package because I will write my own.

Thanks for pointing me toward it though.

"Crouchie1998" wrote:
I have written a POP3 class using sockets & it works perfectly fine.

When I try and check an account like Gmail, which uses SSL, my program
freezes. How do I make my POP3 class SSL compatible

Gmail info (not needed to answer this question though):

POP3: pop.gmail.com
Port: 995
SSL: Yes

Any valid suggestions (not google group searches links please Mr MVP)

Nov 21 '05 #6

P: n/a
If you are referring to the link to EasyMail, yes, the link does mention
that the best way to "do" SSL is to use a component.

The reason for that is explained in the 8 previous pages... writing your own
SSL layer is HARD and nearly never worth it (unless your time is worth about
$1/hour, which is what it will cost you to write it yourself.

You have to go through a complicated handshake to perform SSL
communications. You don't just "turn it on." The handshake involves the
exchange of certificates, the generation of a session key, the establishment
of a session cookie that can be recognized by firewalls and load balancers,
and the encryption and decryption of data using two different encryption
schemes.

Good Luck.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Crouchie1998" <Cr**********@discussions.microsoft.com> wrote in message
news:85**********************************@microsof t.com...
That article is just selling a package really, but it does give some
insight.
I won't use the package because I will write my own.

Thanks for pointing me toward it though.

"Crouchie1998" wrote:
I have written a POP3 class using sockets & it works perfectly fine.

When I try and check an account like Gmail, which uses SSL, my program
freezes. How do I make my POP3 class SSL compatible

Gmail info (not needed to answer this question though):

POP3: pop.gmail.com
Port: 995
SSL: Yes

Any valid suggestions (not google group searches links please Mr MVP)

Nov 21 '05 #7

P: n/a
"Crouchie1998" <Cr**********@discussions.microsoft.com> schrieb:
The reason I wrote what I did in my original post is to stop the Austrian
MVP (Herfried K. Wagner) from just doing a Google Group search & come up
with
something which is no use whatsoever.


Bla bla...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #8

P: n/a
Hi Nick

There is a Security class which has SSL available here:

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

Its a superb project actually!!

On this project my time is my own because I am writing this application for
myself & it will NEVER be commercially available. All the other projects I am
working on professionally provide me with the finance my lifestyle has got
used to :)

I will (100% sure of that) write this class, but I saw on a message board
that the person who wrote the Gmail (account I am writing this SSL for)
notifier used the library I provided the link to above.

I too are a MCP/MCSE
Nov 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.