examples/smtp-mime: use CURLOPT_MAIL_RCPT_ALLOWFAILS

For show

Closes #11335
This commit is contained in:
Daniel Stenberg 2023-06-18 00:40:13 +02:00
parent d40e5cc9a3
commit b39181cedc
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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);