mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:43:32 +03:00
smtp: Allow RCPT TO command to fail for some recipients
Introduces CURLOPT_MAIL_RCPT_ALLLOWFAILS. Verified with the new tests 3002-3007 Closes #4816
This commit is contained in:
parent
23a17e039d
commit
4a4609bf3c
22 changed files with 483 additions and 26 deletions
15
docs/cmdline-opts/mail-rcpt-allowfails.d
Normal file
15
docs/cmdline-opts/mail-rcpt-allowfails.d
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Long: mail-rcpt-allowfails
|
||||
Help: Allow RCPT TO command to fail for some recipients
|
||||
Protocols: SMTP
|
||||
Added: 7.69.0
|
||||
---
|
||||
When sending data to multiple recipients, by default curl will abort SMTP
|
||||
conversation if at least one of the recipients causes RCPT TO command to
|
||||
return an error.
|
||||
|
||||
The default behavior can be changed by passing --mail-rcpt-allowfails
|
||||
command-line option which will make curl ignore errors and proceed with the
|
||||
remaining valid recipients.
|
||||
|
||||
In case when all recipients cause RCPT TO command to fail, curl will abort SMTP
|
||||
conversation and return the error received from to the last RCPT TO command.
|
||||
Loading…
Add table
Add a link
Reference in a new issue