Ruby on Rails email configuration

From Servage Wiki
Jump to: navigation, search

How to install RoR and email?

Basic configuration of email can be found in the below link.

http://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailer

Servage uses sendmail, so the configuration described in "Configuration" should be replaced in the by this:

File: /config/environment.rb Bottom of file should be:

ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.raise_delivery_errors = true

File: /config/environments/production.rb | development.rb

Bottom of file should be:

# Disable delivery errors, bad email addresses will be ignored
# config.action_mailer.raise_delivery_errors = false
# config.frameworks -= [ :action_web_service ]
config.action_controller.session_store = :active_record_store
Personal tools
Navigation