diff options
Diffstat (limited to 'docs/examples/simplesmtp.c')
-rw-r--r-- | docs/examples/simplesmtp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/examples/simplesmtp.c b/docs/examples/simplesmtp.c index df8516242..8ce87808c 100644 --- a/docs/examples/simplesmtp.c +++ b/docs/examples/simplesmtp.c @@ -62,6 +62,7 @@ int main(void) * as a FILE pointer) as shown here. */ curl_easy_setopt(curl, CURLOPT_READDATA, stdin); + curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); /* send the message (including headers) */ res = curl_easy_perform(curl); |