mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
Use angle address, as for the rest of the example.
Also spelling fix for RECIPIENT #define.
This commit is contained in:
parent
6076549304
commit
879914def3
@ -21,7 +21,7 @@
|
|||||||
#define SMTPSERVER "smtp.example.com"
|
#define SMTPSERVER "smtp.example.com"
|
||||||
#define SMTPPORT ":587" /* it is a colon+port string, but you can set it
|
#define SMTPPORT ":587" /* it is a colon+port string, but you can set it
|
||||||
to "" to use the default port */
|
to "" to use the default port */
|
||||||
#define RECEPIENT "<receipient@example.com>"
|
#define RECIPIENT "<recipient@example.com>"
|
||||||
#define MAILFROM "<realuser@example.com>"
|
#define MAILFROM "<realuser@example.com>"
|
||||||
|
|
||||||
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
|
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
|
||||||
@ -99,9 +99,9 @@ int main(void)
|
|||||||
if(!mcurl)
|
if(!mcurl)
|
||||||
return 2;
|
return 2;
|
||||||
|
|
||||||
rcpt_list = curl_slist_append(rcpt_list, RECEPIENT);
|
rcpt_list = curl_slist_append(rcpt_list, RECIPIENT);
|
||||||
/* more addresses can be added here
|
/* more addresses can be added here
|
||||||
rcpt_list = curl_slist_append(rcpt_list, "others@example.com");
|
rcpt_list = curl_slist_append(rcpt_list, "<others@example.com>");
|
||||||
*/
|
*/
|
||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "smtp://" SMTPSERVER SMTPPORT);
|
curl_easy_setopt(curl, CURLOPT_URL, "smtp://" SMTPSERVER SMTPPORT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user