Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
32 #include <curl/curl.h>
73 CURL *curl;
76 curl = curl_easy_init();
77 if(curl) {
87 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
96 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM);
103 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
106 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT_ALLOWFAILS, 1L);
111 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
114 mime = curl_mime_init(curl);
118 alt = curl_mime_init(curl);
139 curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
142 res = curl_easy_perform(curl);
153 /* curl will not send the QUIT command until you call cleanup, so you
161 curl_easy_cleanup(curl);