Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
24 #include <curl/curl.h>
80 CURL *curl;
87 curl = curl_easy_init();
88 if(curl) {
90 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
98 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM);
105 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
110 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
111 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
112 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
115 res = curl_easy_perform(curl);
125 /* curl won't send the QUIT command until you call cleanup, so you should be
133 curl_easy_cleanup(curl);