aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/smtp-multi.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-12-31 00:19:10 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-12-31 00:19:10 +0000
commit73a894170bce99ed71fcc764422f52a7cc4d3815 (patch)
tree81be26e74deb3a419ae86ae8a131665c64a58560 /docs/examples/smtp-multi.c
parent0aafd77fa4c6f225b656bf76c97015aee6644cac (diff)
examples: Updated SMTP examples to set CURLOPT_UPLOAD
Diffstat (limited to 'docs/examples/smtp-multi.c')
-rw-r--r--docs/examples/smtp-multi.c1
1 files changed, 1 insertions, 0 deletions
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);