1 # Configure ActionMailer SMTP settings
2 ActionMailer::Base.smtp_settings = {
3 :address => 'localhost',
5 :domain => 'localhost',
6 :enable_starttls_auto => false
9 # Monkey patch to allow sending of messages in specific locales
12 adv_attr_accessor :locale
14 def mail_with_locale(*args)
15 old_locale= I18n.locale
19 message = mail_without_locale(*args)
21 I18n.locale = old_locale
27 alias_method_chain :mail, :locale