]> granicus.if.org Git - curl/commitdiff
examples/mime: minor example code fixes
authorViktor Szakats <vszakats@users.noreply.github.com>
Tue, 5 Sep 2017 10:05:27 +0000 (10:05 +0000)
committerViktor Szakats <vszakats@users.noreply.github.com>
Tue, 5 Sep 2017 10:05:27 +0000 (10:05 +0000)
docs/examples/smtp-mail.c
docs/examples/smtp-mime.c
docs/examples/smtp-multi.c
docs/examples/smtp-ssl.c
docs/examples/smtp-tls.c
docs/libcurl/curl_mime_type.3

index 315bb2cc5ac23445768f828134b1b85228f51ecf..1fabe4b4c64c58e0a4f088f84378207061f16bc4 100644 (file)
@@ -43,8 +43,8 @@
 static const char *payload_text[] = {
   "Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n",
   "To: " TO "\r\n",
-  "From: " FROM "(Example User)\r\n",
-  "Cc: " CC "(Another example User)\r\n",
+  "From: " FROM " (Example User)\r\n",
+  "Cc: " CC " (Another example User)\r\n",
   "Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
   "rfcpedant.example.org>\r\n",
   "Subject: SMTP example message\r\n",
index c611ac437a04806270ae5e6d24330a8068ea9852..dcd867f684675f3fc0e3e5cb8a14ead7c6593af8 100644 (file)
@@ -43,8 +43,8 @@
 static const char *headers_text[] = {
   "Date: Tue, 22 Aug 2017 14:08:43 +0100",
   "To: " TO,
-  "From: " FROM "(Example User)",
-  "Cc: " CC "(Another example User)",
+  "From: " FROM " (Example User)",
+  "Cc: " CC " (Another example User)",
   "Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
     "rfcpedant.example.org>",
   "Subject: example sending a MIME-formatted message",
index 89e1d941e12fa671cac9207040af83494850511e..b8951772c45e8cdb635218a1e1a94220158915f4 100644 (file)
@@ -44,8 +44,8 @@
 static const char *payload_text[] = {
   "Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n",
   "To: " TO "\r\n",
-  "From: " FROM "(Example User)\r\n",
-  "Cc: " CC "(Another example User)\r\n",
+  "From: " FROM " (Example User)\r\n",
+  "Cc: " CC " (Another example User)\r\n",
   "Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
   "rfcpedant.example.org>\r\n",
   "Subject: SMTP multi example message\r\n",
index f0123408395b4bbd2b6886e147d88f2f8ec3ff8a..019da7d096cc782ff104f1e9e6235f5845067f01 100644 (file)
@@ -44,8 +44,8 @@
 static const char *payload_text[] = {
   "Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n",
   "To: " TO "\r\n",
-  "From: " FROM "(Example User)\r\n",
-  "Cc: " CC "(Another example User)\r\n",
+  "From: " FROM " (Example User)\r\n",
+  "Cc: " CC " (Another example User)\r\n",
   "Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
   "rfcpedant.example.org>\r\n",
   "Subject: SMTP SSL example message\r\n",
index c863e059baec63f590b9e1541350a6f04a06d19c..671a80d09d5c3ebe45840692b91b879243aae08c 100644 (file)
@@ -44,8 +44,8 @@
 static const char *payload_text[] = {
   "Date: Mon, 29 Nov 2010 21:54:29 +1100\r\n",
   "To: " TO "\r\n",
-  "From: " FROM "(Example User)\r\n",
-  "Cc: " CC "(Another example User)\r\n",
+  "From: " FROM " (Example User)\r\n",
+  "Cc: " CC " (Another example User)\r\n",
   "Message-ID: <dcd7cb36-11db-487a-9f3a-e652a9458efd@"
   "rfcpedant.example.org>\r\n",
   "Subject: SMTP TLS example message\r\n",
index aa6b5b27ad9525421bd24a5c0756d2616b47e4af..7a4c0eb3e1cc3c167d7474f1109a2d2ed7b01540 100644 (file)
@@ -72,7 +72,7 @@ CURLE_OK or a CURL error code upon failure.
  curl_mime_filedata(part, "image.png");
 
  /* content-type for this part */
- curl_mime_name(part, "image/png");
+ curl_mime_type(part, "image/png");
 
  /* set name */
  curl_mime_name(part, "image", CURL_ZERO_TERMINATED);