ruby / net-smtp

This library provides functionality to send internet mail via SMTP, the Simple Mail Transfer Protocol.
Other
44 stars 30 forks source link

Handle, in the `rcptto_list` method, a mixture of recipient statuses. #52

Open zdAlexM opened 1 year ago

zdAlexM commented 1 year ago

Hi,

I've found an issue with the rcptto_list method in Net::SMTP. It attempts to protect against "unknown users", but only tests against 53x-class errors, which are authentication-related. Additionally, in the case of some acceptable recipients, but others returning 53x-class errors, the block would be yielded to before the exception is thrown, potentially sending messages to the accepted recipients.

This patch updates this library to be more robust against mixed SMTP statuses.