mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:37:18 +03:00
lib1507.c: Added missing set of CURLOPT_UPLOAD option
Although this option should have already been set, the SMTP module can now download information from and send instructional commands to, an SMTP server, requiring the option to be set in order to perform a mail transfer.
This commit is contained in:
parent
168aa59705
commit
ed4ce23c23
1 changed files with 1 additions and 0 deletions
|
|
@ -89,6 +89,7 @@ int test(char *URL)
|
|||
curl_easy_setopt(curl, CURLOPT_USERNAME, USERNAME);
|
||||
curl_easy_setopt(curl, CURLOPT_PASSWORD, PASSWORD);
|
||||
#endif
|
||||
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
|
||||
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
|
||||
curl_easy_setopt(curl, CURLOPT_MAIL_FROM, MAILFROM);
|
||||
curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, rcpt_list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue