mirror of
https://github.com/curl/curl.git
synced 2026-07-30 16:28:07 +03:00
examples: Updated SMTP examples to set CURLOPT_UPLOAD
This commit is contained in:
parent
0aafd77fa4
commit
73a894170b
3 changed files with 5 additions and 1 deletions
|
|
@ -120,6 +120,7 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_USERNAME, USERNAME);
|
||||
curl_easy_setopt(curl, CURLOPT_PASSWORD, PASSWORD);
|
||||
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
|
||||
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
|
||||
curl_easy_setopt(curl, CURLOPT_MAIL_FROM, MAILFROM);
|
||||
curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, rcpt_list);
|
||||
curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue