· 7 years ago · Mar 11, 2019, 08:02 AM
1config.action_mailer.raise_delivery_errors = true
2config.action_mailer.default_url_options = { :host => 'localhost:3000'}
3config.action_mailer.delivery_method = :smtp
4config.action_mailer.smtp_settings = {:address => "localhost", :port => 1025}
5
6config.action_mailer.default_url_options = {:host => 'myapp.herokuapp.com'}
7config.action_mailer.raise_delivery_errors = true
8config.action_mailer.delivery_method = :smtp
9config.action_mailer.perform_deliveries = true
10config.action_mailer.smtp_settings = {
11 :address => "smtp.gmail.com",
12 :port => 587,
13 :domain => 'myapp.herokuapp.com', #I've also tried changing this to 'gmail.com'
14 :authentication => :plain, # I've also tried changing this to :login
15 :enable_starttls_auto => true,
16 :user_name => 'mygmailaccount@gmail.com',
17 :password => 'mypassword'
18 }
19
202013-11-24T18:51:01.069086+00:00 app[web.1]: Rendered layouts/_header.html.erb
21(1.4ms)
222013-11-24T18:50:57.403500+00:00 heroku[router]: at=info method=GET path=/users/
23confirmation/new host=myapp.herokuapp.com fwd="118.22.125.86" dyno=we
24b.1 connect=30ms service=18ms status=304 bytes=0
252013-11-24T18:50:32.655624+00:00 heroku[router]: at=info method=GET path=/users/
26sign_up host=myapp.herokuapp.com fwd="118.22.125.86" dyno=web.1 conne
27ct=25ms service=78ms status=304 bytes=0
28
292013-11-24T20:35:31.602702+00:00 heroku[router]: at=info method=GET path=/favico
30n.ico host=myapp.herokuapp.com fwd="118.22.125.86" dyno=web.1 connect
31=2ms service=9ms status=304 bytes=0
322013-11-24T20:35:13.963743+00:00 heroku[router]: at=info method=GET path=/favico
33n.ico host=myapp.herokuapp.com fwd="118.22.125.86" dyno=web.1 connect
34=1ms service=447ms status=200 bytes=0
35
362013-11-24T20:38:32.693982+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rac
37k-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
382013-11-24T20:38:32.694321+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/
39webrick/server.rb:295:in `block in start_thread'
402013-11-24T20:38:32.693982+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rac
41k-cache-1.2/lib/rack/cache/context.rb:51:in `call'
422013-11-24T20:38:32.693982+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/
43webrick/httpserver.rb:94:in `run'
442013-11-24T20:38:32.693982+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/
45webrick/httpserver.rb:138:in `service'
46
47config.action_mailer.raise_delivery_errors = true
48config.action_mailer.delivery_method = :smtp
49config.action_mailer.perform_deliveries = true
50
51config.action_mailer.default_url_options = {:host => 'myapp.herokuapp.com', :protocol => 'http'}
52
53config.action_mailer.delivery_method = :smtp
54
55 config.action_mailer.perform_deliveries = true
56
57 config.action_mailer.raise_delivery_errors = true
58
59 config.action_mailer.default_url_options = { :host => 'myapp.herokuapp.com', :protocol => 'http' }
60
61 config.action_mailer.smtp_settings = {
62 address: 'smtp.gmail.com',
63 port: 587,
64 domain: 'gmail.com',
65 user_name: 'example@gmail.com',
66 password: 'Your gmail password',
67 authentication: 'plain'
68 }