Reading emails from gmail POP3 account using libCurl
I'm currently working in a C++ project which has to be able to read emails from an gmail POP3 account just like the title says. Also is important to say that I need to download the attachments (is encode base64?) of the mail and its body. The fact is that everyone recommend to use libCurl for this task, but the code sample on their web is not working. I saw this example on Libcurl website : #include <stdio.h> #include <curl/curl.h> int main(void) { CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { /* Set username and password */ curl_easy_setopt(curl, CURLOPT_USERPWD, "user