10 pts.
 Send email through POP3 or SSL
Hi to all,

Can any one help me, How To send/receive emails through ssl or pop3 server like gmail who uses ssl. I have tried with winsock control but it can't work with gmail. Please can anyone provide me code for send /receive gmails email  using pop3 or ssl.

 

Regard

Software/Hardware used:
WINDOWS OS XP,VISUAL BASIC 6.0
ASKED: October 7, 2011  10:12 AM
UPDATED: March 31, 2012  12:30 AM

Answer Wiki:
If you are using Office Outlook, you will need to first download Outlook Connector from Microsoft. Once that is done, you will have no problem connecting.
Last Wiki Answer Submitted:  October 7, 2011  12:27 pm  by  Harisheldon1960   1,420 pts.
All Answer Wiki Contributors:  Harisheldon1960   1,420 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

First thing you need is ssl-enabled e-mail client – fortunately, most of the clients are ssl-enabled nowadays.

Second, you need to configure properly your mail account with respect to pop3 and smtp servers.

You can use standard ports (110 for pop3 and 25 for smtp) together with STARTTLS which means that the connection is initiated as unencrypted, and then server and client negotiate the encryption if both of them are ssl-enabled , or “secure ports” (995 for pop3s and 465 for smtps) together with “plain” SSL which means that encryption negotiation should be the first thing during connection initiation, and no connection will be started if any of the server or client is not ssl-capable.

So no winsock have to be used/controlled directly – it could be done, but for test purposes only.

 3,120 pts.