xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Long: mail-rcpt-allowfails |
| 4 | Help: Allow RCPT TO command to fail for some recipients |
| 5 | Protocols: SMTP |
| 6 | Added: 7.69.0 |
| 7 | Category: smtp |
| 8 | Example: --mail-rcpt-allowfails --mail-rcpt dest@example.com smtp://example.com |
| 9 | See-also: mail-rcpt |
| 10 | Multi: boolean |
| 11 | --- |
| 12 | When sending data to multiple recipients, by default curl will abort SMTP |
| 13 | conversation if at least one of the recipients causes RCPT TO command to |
| 14 | return an error. |
| 15 | |
| 16 | The default behavior can be changed by passing --mail-rcpt-allowfails |
| 17 | command-line option which will make curl ignore errors and proceed with the |
| 18 | remaining valid recipients. |
| 19 | |
| 20 | If all recipients trigger RCPT TO failures and this flag is specified, curl |
| 21 | will still abort the SMTP conversation and return the error received from to |
| 22 | the last RCPT TO command. |