diff --git a/lib/pony.rb b/lib/pony.rb index 102a597..271809f 100644 --- a/lib/pony.rb +++ b/lib/pony.rb @@ -99,7 +99,7 @@ def self.transport_via_smtp(tmail, options={:smtp => {}}) else smtp.start(o[:domain]) end - smtp.send_message tmail.to_s, tmail.from, [ tmail.to, tmail.cc, tmail.bcc ].select { |i| i != '' } + smtp.send_message tmail.to_s, tmail.from, tmail.destinations smtp.finish end end