]> git.openstreetmap.org Git - rails.git/blob - config/initializers/action_mailer.rb
translating the listing of diary entries. Adding some initial tests for checking...
[rails.git] / config / initializers / action_mailer.rb
1 # Configure ActionMailer
2 ActionMailer::Base.smtp_settings = {
3   :address => 'localhost',
4   :port => 25, 
5   :domain => 'localhost',
6 }
7
8 # Monkey patch to fix return-path bug in ActionMailer 2.2.2
9 # Can be removed once we go to 2.3
10 module Net
11   class SMTP
12     def sendmail(msgstr, from_addr, *to_addrs)
13       send_message(msgstr, from_addr.to_s.sub(/^<(.*)>$/, "\\1"), *to_addrs)
14     end
15   end
16 end