]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Use angle address, as for the rest of the example.
authorBrad Hards <bradh@frogmouth.net>
Sat, 25 Dec 2010 00:56:04 +0000 (11:56 +1100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 25 Dec 2010 22:06:53 +0000 (23:06 +0100)
Also spelling fix for RECIPIENT #define.

docs/examples/smtp-multi.c

index e13108a4339bb62ddd6286ba6cba7c71a3c33647..4d1dfc4fb5919ae86cc0a9be25ed41620e8246c3 100644 (file)
@@ -21,7 +21,7 @@
 #define SMTPSERVER "smtp.example.com"
 #define SMTPPORT ":587" /* it is a colon+port string, but you can set it
                            to "" to use the default port */
-#define RECEPIENT "<receipient@example.com>"
+#define RECIPIENT "<recipient@example.com>"
 #define MAILFROM "<realuser@example.com>"
 
 #define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
@@ -99,9 +99,9 @@ int main(void)
    if(!mcurl)
      return 2;
 
-   rcpt_list = curl_slist_append(rcpt_list, RECEPIENT);
+   rcpt_list = curl_slist_append(rcpt_list, RECIPIENT);
    /* more addresses can be added here
-      rcpt_list = curl_slist_append(rcpt_list, "others@example.com");
+      rcpt_list = curl_slist_append(rcpt_list, "<others@example.com>");
    */
 
    curl_easy_setopt(curl, CURLOPT_URL, "smtp://" SMTPSERVER SMTPPORT);