У меня проблема с настройкой smtp devise. Я получаю это сообщение, когда хочу сбросить пароль, например, c.
Net::SMTPAuthenticationError in Devise::PasswordsController#create
535-5.7.8 Username and Password not accepted. Learn more at
Extracted source (around line #976):
def check_auth_response(res)
unless res.success?
raise SMTPAuthenticationError, res.message
end
end
development.rb
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_url_options = { :host => 'localhost', port:3000 } config.action_mailer.delivery_method = :smtp
application.rb в папке locales
ActionMailer::Base.smtp_settings = {
:address => 'smtp.gmail.com',
:domain => 'smtp@gmail.com',
:port => 587,
:user_name => "mygmail@gmail.com",
:password => "mypassword",
:authentication => :plain,
:enable_starttls_auto => true
}
Я пытался сделать все как в этом видео, но у меня это не работает. https://www.youtube.com/watch?v=ZEk0Jp2dThc&t=1282s