From: Daniel Stenberg Date: Sat, 17 Jun 2023 22:40:13 +0000 (+0200) Subject: examples/smtp-mime: use CURLOPT_MAIL_RCPT_ALLOWFAILS X-Git-Tag: curl-8_2_0~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b39181cedcc2f672c694c4e487cb6dd5c52da57c;p=thirdparty%2Fcurl.git examples/smtp-mime: use CURLOPT_MAIL_RCPT_ALLOWFAILS For show Closes #11335 --- diff --git a/docs/examples/smtp-mime.c b/docs/examples/smtp-mime.c index 872dbff6c3..8e19e7e2ee 100644 --- a/docs/examples/smtp-mime.c +++ b/docs/examples/smtp-mime.c @@ -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);