Sha256: fa700f72b57bcaa45d348b53ea1b64fed42150c2d70e2153283dcc8a36a6812a

Contents?: true

Size: 1.09 KB

Versions: 21

Compression:

Stored size: 1.09 KB

Contents

FROM_ADDRESS     = Rails.application.secrets.email['from']
REPLY_TO_ADDRESS = Rails.application.secrets.email['reply_to'] ||
                     Rails.application.secrets.email['from']

ActionMailer::Base.smtp_settings = {
  :address              => Rails.application.secrets.smtp['address'],
  :port                 => Rails.application.secrets.smtp['port'],
  :domain               => Rails.application.secrets.smtp['domain'],
  :user_name            => Rails.application.secrets.smtp['user_name'],
  :password             => Rails.application.secrets.smtp['password'],
  :authentication       => :plain,
  :raise_delivery_errors => (Rails.env.development?),
  :enable_starttls_auto => true
}


class DevelopmentMailInterceptor
  def self.delivering_email(message)
    message.subject = "#{message.to} #{message.subject}"
    message.to      = Rails.application.secrets.email['test'] rescue "test@lrdesign.com"
  end
end

ActionMailer::Base.default_url_options[:host] = Rails.application.secrets.email['from_domain']
ActionMailer::Base.register_interceptor(DevelopmentMailInterceptor) if Rails.env.development?

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
xing-framework-1.0.0.pre.beta.1 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-1.0.0.pre.beta default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-1.0.0.pre.alpha default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.3.2 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.3.1 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.3.0 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.9 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.9.beta1 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.8 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.8.beta1 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.7 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.7.pre.beta1 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.6 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.5 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.4 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.3 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.2 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.1 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.2.0 default_configuration/base_app/backend/config/initializers/smtp.rb
xing-framework-0.0.3 default_configuration/base_app/backend/config/initializers/smtp.rb