mirror of
https://github.com/curl/curl.git
synced 2026-04-15 03:21:41 +03:00
examples/smtp-mime: use CURLOPT_MAIL_RCPT_ALLOWFAILS
For show Closes #11335
This commit is contained in:
parent
d40e5cc9a3
commit
b39181cedc
1 changed files with 3 additions and 0 deletions
|
|
@ -102,6 +102,9 @@ int main(void)
|
|||
recipients = curl_slist_append(recipients, CC);
|
||||
curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
|
||||
|
||||
/* allow one of the recipients to fail and still consider it okay */
|
||||
curl_easy_setopt(curl, CURLOPT_MAIL_RCPT_ALLOWFAILS, 1L);
|
||||
|
||||
/* Build and set the message header list. */
|
||||
for(cpp = headers_text; *cpp; cpp++)
|
||||
headers = curl_slist_append(headers, *cpp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue