· 8 years ago · Jul 09, 2018, 01:42 PM
1require "smtp_tls"
2
3# Specifies gem version of Rails to use when vendor/rails is not present
4RAILS_GEM_VERSION = '2.3.3' unless defined? RAILS_GEM_VERSION
5
6# Bootstrap the Rails environment, frameworks, and default configuration
7require File.join(File.dirname(__FILE__), 'boot')
8
9Rails::Initializer.run do |config|
10 config.time_zone = 'UTC'
11 config.action_mailer.smtp_settings = {
12 :address => "smtp.gmail.com",
13 :port => 587,
14 :domain => 'gmail.com',
15 :authentication => :plain,
16 :user_name => '####@gmail.com',
17 :password => '####'
18 }
19 config.action_mailer.raise_delivery_errors = true
20 config.action_mailer.delivery_method = :smtp
21end