· 9 years ago · Feb 05, 2017, 03:20 AM
1config.assets.raise_runtime_errors = true
2
3config.action_mailer.default_url_options = { host: 'https://myapp.herokuapp.com' }
4
5config.action_mailer.delivery_method = :smtp
6config.action_mailer.perform_deliveries = true
7config.action_mailer.smtp_settings = {
8 address: "smtp.gmail.com",
9 port: 587,
10 domain: "gmail.com",
11 authentications: "plain",
12 enable_starttls_auto: true,
13 username: ENV["GMAIL_ACCOUNT"],
14 passwords: ENV["GMAIL_PASSWORD"],
15 openssl_verify_mode: 'none'
16}
17
18Net::SMTPAuthenticationError: 530-5.5.1 Authentication Required. Learn more at
19
20from /app/vendor/ruby-2.2.6/lib/ruby/2.2.0/net/smtp.rb:964:in `check_response'
21from /app/vendor/ruby-2.2.6/lib/ruby/2.2.0/net/smtp.rb:933:in `getok'
22from /app/vendor/ruby-2.2.6/lib/ruby/2.2.0/net/smtp.rb:841:in `mailfrom'
23from /app/vendor/ruby-2.2.6/lib/ruby/2.2.0/net/smtp.rb:662:in `send_message'
24from /app/vendor/bundle/ruby/2.2.0/gems/mail-2.6.4/lib/mail/network/delivery_methods/smtp.rb:114:in `block in deliver!'
25from /app/vendor/ruby-2.2.6/lib/ruby/2.2.0/net/smtp.rb:521:in `start'
26from /app/vendor/bundle/ruby/2.2.0/gems/mail-2.6.4/lib/mail/network/delivery_methods/smtp.rb:113:in `deliver!'
27from /app/vendor/bundle/ruby/2.2.0/gems/mail-2.6.4/lib/mail/message.rb:2149:in `do_delivery'
28from /app/vendor/bundle/ruby/2.2.0/gems/mail-2.6.4/lib/mail/message.rb:237:in `block in deliver'
29from /app/vendor/bundle/ruby/2.2.0/gems/actionmailer-4.2.5.1/lib/action_mailer/base.rb:543:in `block in deliver_mail'
30from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
31from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
32from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
33from /app/vendor/bundle/ruby/2.2.0/gems/actionmailer-4.2.5.1/lib/action_mailer/base.rb:541:in `deliver_mail'
34from /app/vendor/bundle/ruby/2.2.0/gems/mail-2.6.4/lib/mail/message.rb:237:in `deliver'
35from /app/vendor/bundle/ruby/2.2.0/gems/actionmailer-4.2.5.1/lib/action_mailer/message_delivery.rb:85:in `deliver_now'
36from (irb):3
37from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands/console.rb:110:in `start'
38from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands/console.rb:9:in `start'
39from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:68:in `console'
40from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
41from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.1/lib/rails/commands.rb:17:in `<top (required)>'
42from /app/bin/rails:9:in `require'
43from /app/bin/rails:9:in `<main>'