Send texts individually

If we pass all the phone numbers at once in one email, it becomes
a group chat, and that allows the recipients to see each other's
number, which isn't the intended behavior.
bug/bundler_fix
wchen-r7 2017-03-03 11:12:59 -06:00
parent c61f8ded78
commit 2edb116855
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ module Rex
begin
smtp.enable_starttls_auto
smtp.start(helo_domain, username, password, login_type) do
smtp.send_message(message, from, recipients)
recipients.each do |r|
smtp.send_message(message, from, r)
end
end
ensure
smtp.finish if smtp && smtp.started?