1 # Configure ActionMailer SMTP settings
2 ActionMailer::Base.smtp_settings = {
3 :address => 'localhost',
5 :domain => 'localhost',
8 # Monkey patch to allow sending of messages in specific locales
11 adv_attr_accessor :locale
13 alias_method :old_render_message, :render_message
15 def render_message(method_name, body)
16 old_locale= I18n.locale
20 message = old_render_message(method_name, body)
22 I18n.locale = old_locale