Skip to content

Commit

Permalink
taking advantage of tmails destinations method to produce clean array…
Browse files Browse the repository at this point in the history
… of recipients
  • Loading branch information
Kalin Harvey committed Mar 12, 2010
1 parent a012d5d commit 79ea30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pony.rb
Expand Up @@ -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

0 comments on commit 79ea30e

Please sign in to comment.