Set up email sending in production

This commit is contained in:
Petko Bordjukov 2014-08-31 17:41:35 +03:00
parent 830eab663f
commit 020f667881
2 changed files with 5 additions and 1 deletions

View File

@ -60,6 +60,10 @@ Rails.application.configure do
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# config.assets.precompile += %w( search.js )
config.action_mailer.delivery_method = :sendmail
config.action_mailer.default_options = {from: 'no-reply@openfest.org'}
config.action_mailer.default_url_options = {host: 'cfp.openfest.org'}
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
# config.action_mailer.raise_delivery_errors = false

View File

@ -10,7 +10,7 @@ Devise.setup do |config|
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
config.mailer_sender = 'cfp@openfest.org'
config.mailer_sender = 'no-reply@openfest.org'
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'