From b39181cedcc2f672c694c4e487cb6dd5c52da57c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 18 Jun 2023 00:40:13 +0200 Subject: [PATCH] examples/smtp-mime: use CURLOPT_MAIL_RCPT_ALLOWFAILS For show Closes #11335 --- docs/examples/smtp-mime.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.47.3