mirror of
https://github.com/axllent/mailpit.git
synced 2025-01-04 00:15:54 +02:00
API: Ignore SMTP relay error when one of multiple recipients doesn't exist
RCPT errors will now produce a warning log message rather than return immediate error. See #132
This commit is contained in:
parent
a5de4e4f65
commit
6b6de59c47
@ -88,7 +88,7 @@ func Send(from string, to []string, msg []byte) error {
|
||||
|
||||
for _, addr := range recipients {
|
||||
if err = c.Rcpt(addr); err != nil {
|
||||
return fmt.Errorf("error response to RCPT command for %s: %s", addr, err.Error())
|
||||
logger.Log().Warnf("error response to RCPT command for %s: %s", addr, err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user