How to use POP3 over SSL in C

被刻印的时光 ゝ 提交于 2019-12-08 03:11:44

问题


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


回答1:


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




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/137741/how-to-use-pop3-over-ssl-in-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!