benprew / pony

The express way to send mail from Ruby.
1.14k stars 51 forks source link

Added the ability to set default options #1

Closed carlhoerberg closed 14 years ago

carlhoerberg commented 14 years ago

So that you don't have to specify the from and via options every time..

Pony.options = {:from => 'noreply@pony', :via => :smtp} Pony.mail(:to => 'me@pony') Pony.mail(:to => 'you@pony')

specs included

carlhoerberg commented 14 years ago

Thanks for the feedback! I fixed both the issues.

benprew commented 14 years ago

Carl,

That's great! I've merged your changes in master and pushed out Pony 1.1, thanks for you help!