Question

I would like to know and understand the steps involved in fetching mail from pop3 server using plain c language

Was it helpful?

Solution

Steps:

  1. Connect to the server's port (usually 995) using OpenSSL
  2. Verify the certificate
  3. Send regular pop3 commands over the SSL socket you just opened. (LIST, RETR and so on)
  4. Retrieve the responses
  5. Close the socket

Or use a library that does all of the above for you

OTHER TIPS

Use one of the thousands of libraries that already exist such as libspopc.

Use a library such as tinymail, which uses the OpenSSL library.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top