How to use POP3 over SSL in C

2019-06-03 15:27发布

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

标签: c ssl pop3
3条回答
乱世女痞
2楼-- · 2019-06-03 15:45

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

查看更多
Luminary・发光体
3楼-- · 2019-06-03 15:46

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

查看更多
倾城 Initia
4楼-- · 2019-06-03 15:50

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

查看更多
登录 后发表回答