I can't send a letter using the curl library. Writes an error unsupported protocol. I use the standard code from the official site: https://curl.se/libcurl/c/smtp-mail.html I tried different options, none came up:
curl_easy_setopt (curl, CURLOPT_URL, "smtp://smtp.gmail.com:465");
curl_easy_setopt (curl, CURLOPT_URL, "smtp://smtp.gmail.com");
curl_easy_setopt (curl, CURLOPT_URL, "smtp.gmail.com");
curl_easy_setopt (curl, CURLOPT_URL, "smtp://gmail.com");
Error message: curl_easy_perform() failed: Unsupported protocol