aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/smtp-expn.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-01-05 10:32:47 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-01-05 11:27:29 +0000
commit98b7fc019575615bfce5026feec6308a19b78a29 (patch)
treebf236b94daa30c245939802e7ef24b7a53a90665 /docs/examples/smtp-expn.c
parentf9797871aadeed125e01a3510e7c8222683f9529 (diff)
examples: Added SMTP SSL example
Diffstat (limited to 'docs/examples/smtp-expn.c')
-rw-r--r--docs/examples/smtp-expn.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/examples/smtp-expn.c b/docs/examples/smtp-expn.c
index c1f33fe1e..2e8649e14 100644
--- a/docs/examples/smtp-expn.c
+++ b/docs/examples/smtp-expn.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -39,9 +39,8 @@ int main(void)
curl = curl_easy_init();
if(curl) {
- /* This is the URL for your mailserver - you can also use an smtps:// URL
- * here */
- curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.net");
+ /* This is the URL for your mailserver */
+ curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
/* Note that the CURLOPT_MAIL_RCPT takes a list, not a char array */
recipients = curl_slist_append(recipients, "Friends");