mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
examples/mime: minor example code fixes
This commit is contained in:
parent
eae21db920
commit
25fc694a41
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user