· 7 years ago · Oct 11, 2018, 05:42 AM
1DeviseExample::Application.configure do
2 # Settings specified here will take precedence over those in config/environment.rb
3 #Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
4 # In the development environment your application's code is reloaded on
5 # every request. This slows down response time but is perfect for development
6 # since you don't have to restart the webserver when you make code changes.
7 config.cache_classes = false
8
9 # Log error messages when you accidentally call methods on nil.
10 config.whiny_nils = true
11
12 # Show full error reports and disable caching
13 config.consider_all_requests_local = true
14 config.action_view.debug_rjs = true
15 config.action_controller.perform_caching = false
16
17 # Don't care if the mailer can't send
18 config.action_mailer.raise_delivery_errors = true
19
20 # Print deprecation notices to the Rails logger
21 config.active_support.deprecation = :log
22
23 # Only use best-standards-support built into browsers
24 config.action_dispatch.best_standards_support = :builtin
25
26 config.action_mailer.default_url_options = { :host => 'localhost:3000' }
27
28 config.action_dispatch.best_standards_support = :builtin
29
30 config.active_support.deprecation = :notify
31 config.action_mailer.delivery_method = :smtp
32 config.action_mailer.perform_deliveries = false
33
34
35 config.action_mailer.default :charset => "utf-8"
36
37 config.action_mailer.smtp_settings ={
38 :enable_starttls_auto => true,
39 :address => 'smtp.gmail.com',
40 :port => 587,
41 :tls => true,
42 :enable_starttls_auto => true,
43 :domain => 'gmail.com',
44 :authentication => :plain,
45 :user_name => '######@gmail.com'',
46 :password => '###########'
47 }
48
49
50 config.action_mailer.delivery_method = :sendmail
51 # Defaults to:
52 # config.action_mailer.sendmail_settings = {
53 # :location => '/usr/sbin/sendmail',
54 # :arguments => '-i -t'
55 # }
56 config.action_mailer.perform_deliveries = true
57 config.action_mailer.raise_delivery_errors = true
58
59
60end