mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
Add angle brackets to addresses in easy SMTP examples, as for smtp-multi example.
This commit is contained in:
parent
49465fffdb
commit
6076549304
@ -18,10 +18,10 @@ int main(void)
|
|||||||
struct curl_slist *recipients = NULL;
|
struct curl_slist *recipients = NULL;
|
||||||
|
|
||||||
/* value for envelope reverse-path */
|
/* 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 */
|
/* this becomes the envelope forward-path */
|
||||||
static const char *to = "bradh@example.net";
|
static const char *to = "<bradh@example.net>";
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
* authentication and transport security.
|
* authentication and transport security.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define FROM "sender@example.org"
|
#define FROM "<sender@example.org>"
|
||||||
#define TO "addressee@example.net"
|
#define TO "<addressee@example.net>"
|
||||||
#define CC "info@example.org"
|
#define CC "<info@example.org>"
|
||||||
|
|
||||||
static const char *payload_text[]={
|
static const char *payload_text[]={
|
||||||
"Date: Mon, 29 Nov 2010 21:54:29 +1100\n",
|
"Date: Mon, 29 Nov 2010 21:54:29 +1100\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user