From e7c3a650c0a8fdf1fd09aa643e7dfc4bb87cc084 Mon Sep 17 00:00:00 2001
From: Brad Hards <bradh@frogmouth.net>
Date: Sat, 25 Dec 2010 11:54:41 +1100
Subject: [PATCH 1/3] Add angle brackets to addresses in easy SMTP examples, as for smtp-multi example.

---
 docs/examples/simplesmtp.c |    4 ++--
 docs/examples/smtp-tls.c   |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/examples/simplesmtp.c b/docs/examples/simplesmtp.c
index 4144ed6..0c1f7ff 100644
--- a/docs/examples/simplesmtp.c
+++ b/docs/examples/simplesmtp.c
@@ -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) {
diff --git a/docs/examples/smtp-tls.c b/docs/examples/smtp-tls.c
index 97119c5..2769088 100644
--- a/docs/examples/smtp-tls.c
+++ b/docs/examples/smtp-tls.c
@@ -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",
-- 
1.7.0.4


