From 73a894170bce99ed71fcc764422f52a7cc4d3815 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Tue, 31 Dec 2013 00:19:10 +0000 Subject: examples: Updated SMTP examples to set CURLOPT_UPLOAD --- docs/examples/smtp-multi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/examples/smtp-multi.c') diff --git a/docs/examples/smtp-multi.c b/docs/examples/smtp-multi.c index 6462aff2d..145c7a260 100644 --- a/docs/examples/smtp-multi.c +++ b/docs/examples/smtp-multi.c @@ -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); -- cgit v1.2.3