13 July 2015

email configuration - SHK

# /config/environment/production.rb
config.action_mailer.default_url_options = { host: 'www.sharingkitchn.com' }
# devise configuration
config.action_mailer.delivery_method = :smtp
# change to true to allow email to be sent during development
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default :charset => "utf-8"
config.action_mailer.smtp_settings = {
  :port           => 587,
  :address        => 'smtp.gmail.com',
  :domain         => ENV['SHK_EMAIL_USERNAME'],
  :authentication => :plain,
  :enable_starttls_auto => true,
  :user_name      => ENV['SHK_EMAIL_USERNAME'],
  :password       => ENV['SHK_EMAIL_PASSWORD']
}

# devise.rb

  config.mailer_sender = 'francesca+platform@sharingkitchn.com'