]> granicus.if.org Git - curl/commitdiff
Add angle brackets to addresses in easy SMTP examples, as for smtp-multi example.
authorBrad Hards <bradh@frogmouth.net>
Sat, 25 Dec 2010 00:54:41 +0000 (11:54 +1100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 25 Dec 2010 22:06:29 +0000 (23:06 +0100)
docs/examples/simplesmtp.c
docs/examples/smtp-tls.c

index 4144ed64795ceba42a3ac21091fd6343679c86ef..0c1f7ff8791bcffd8e500126c59e73ee556af376 100644 (file)
@@ -18,10 +18,10 @@ int main(void)
   struct curl_slist *recipients = NULL;
 
   /* value for envelope reverse-path */
-  static const char *from = "bradh@example.com";
+  static const char *from = "<bradh@example.com>";
 
   /* this becomes the envelope forward-path */
-  static const char *to = "bradh@example.net";
+  static const char *to = "<bradh@example.net>";
 
   curl = curl_easy_init();
   if(curl) {
index 97119c5689976a8723c8bc1c2a48219c4e804bb1..27690886163fb46617110d3a0942ca5c238c3751 100644 (file)
@@ -16,9 +16,9 @@
  * authentication and transport security.
  */
 
-#define FROM    "sender@example.org"
-#define TO      "addressee@example.net"
-#define CC      "info@example.org"
+#define FROM    "<sender@example.org>"
+#define TO      "<addressee@example.net>"
+#define CC      "<info@example.org>"
 
 static const char *payload_text[]={
   "Date: Mon, 29 Nov 2010 21:54:29 +1100\n",