This program retrieves E-Mail from a mail server using the POP3 protocol. The POP3 object inherits from my Winsock object.

EmailPOP3 uses Cryptlib, an open source library to communicate with the server using SSL encryption. The file cl32.dll is the 32bit Cryptlib and cl64.dll is the 64bit Cryptlib. The library emailpop364.pbl was built in PB 12.6 and has changes to support 32bit when run from the IDE or 32bit exe and support 64bit when run from a 64bit exe. The n_winsock object is no longer autoinstatiate so you can create the proper pop3 object (n_pop3 or n_pop364).

The email messages are returned as a string that can be saved to an .EML file.

There is a function to separate the parts of the raw message (textbody, htmlbody, attachments). Attachments can become blob variables using the of_Decode64 function.

Win API Functions used:

Only those in in the Winsock object

——— Last updated 01/05/2018 ———