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 def mail_with_locale(*args)
13 old_locale = I18n.locale
17 message = mail_without_locale(*args)
19 I18n.locale = old_locale
25 alias_method_chain :mail, :locale