class Net::SMTP
Public Instance Methods
rcptto_list(to_addrs) { || ... }
click to toggle source
# File lib/smtp/patch/smtp.rb, line 22 def rcptto_list(to_addrs) raise ArgumentError, 'mail destination not given' if to_addrs.empty? ok_users = [] errors = {} to_addrs.flatten.each do |addr| begin rcptto addr rescue SMTPError errors[addr] = $! else ok_users << addr end end raise ArgumentError, 'mail destination not given' if ok_users.empty? ret = yield raise SMTPErrors, errors if errors.any? ret end
Also aliased as: original_rcptto_list