aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/smtp-multi.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-01-04 18:10:18 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-01-04 18:12:02 +0000
commit5220c1d69240dfab2087990d24229f81db9b4b33 (patch)
tree1abf2c637f0cfdf08e7327d0b00c934bc7d1d704 /docs/examples/smtp-multi.c
parent84a9f092dc187400cfd2448c73f44602b042c1b1 (diff)
examples: Standardised username and password settings for all email examples
Replaced the use of CURLOPT_USERPWD for the preferred CURLOPT_USERNAME and CURLOPT_PASSWORD options and used the same username and password for all email examples which is the same as that used in the test suite.
Diffstat (limited to 'docs/examples/smtp-multi.c')
-rw-r--r--docs/examples/smtp-multi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/examples/smtp-multi.c b/docs/examples/smtp-multi.c
index 612508f31..7394f1ea8 100644
--- a/docs/examples/smtp-multi.c
+++ b/docs/examples/smtp-multi.c
@@ -29,8 +29,6 @@
/*
* This is the list of basic details you need to tweak to get things right.
*/
-#define USERNAME "user@example.com"
-#define PASSWORD "123qwerty"
#define SERVER "smtp.example.com"
#define PORT ":587" /* it is a colon+port string, but you can set it
to "" to use the default port */
@@ -126,8 +124,8 @@ int main(void)
recipients = curl_slist_append(recipients, CC);
curl_easy_setopt(curl, CURLOPT_URL, "smtp://" SERVER PORT);
- curl_easy_setopt(curl, CURLOPT_USERNAME, USERNAME);
- curl_easy_setopt(curl, CURLOPT_PASSWORD, PASSWORD);
+ curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
+ curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);