lib/merb/merb_mailer.rb in merb-0.3.1 vs lib/merb/merb_mailer.rb in merb-0.3.3
- old
+ new
@@ -43,19 +43,21 @@
end
end
end
=begin
-m = Merb::Mailer.new :to => 'foo@bar.com',
- :from => 'bar@foo.com',
- :subject => 'Welcome to whatever!',
- :body => partial(:sometemplate)
-m.deliver!
+
Merb::Mailer.config = {
:host=>'smtp.yourserver.com',
:port=>'25',
:user=>'user',
:pass=>'pass',
:auth=>:plain # :plain, :login, or :cram_md5, default :plain
}
+m = Merb::Mailer.new :to => 'foo@bar.com',
+ :from => 'bar@foo.com',
+ :subject => 'Welcome to whatever!',
+ :body => partial(:sometemplate)
+m.deliver!
+
=end
\ No newline at end of file