Я столкнулся с проблемой с изобретением забыл пароль. Я не получаю никаких писем, хотя devise отображает messsage, что «вы получите электронное письмо с инструкциями о том, как сбросить пароль за несколько минут».devise забыл пароль email не получен
рубин 1.9.3 Rails 3.2 Разрабатывают 2.2.4
Моя среда/development.rb
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default :charset => "utf-8"
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:authentication => :plain,
:domain => '[email protected]',
:user_name => '[email protected]',
:password => 'abcde',
}
Мой environment.rb ActionMailer :: Base.delivery_method =:
SMTPMy intializers/devise.rb
config.mailer_sender = "[email protected]"
И development.log показывает
Sent mail to [email protected] (3205ms)
Date: Wed, 26 Jun 2013 23:33:01 +1000
From: [email protected]
Reply-To: [email protected]
To: [email protected]
Message-ID: <[email protected]>
Subject: Reset password instructions
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
<p>Hello [email protected]!</p>
<p>Someone has requested a link to change your password. You can do this the link below.</p>
<p><a href="http://localhost:3000/users/password /edit?reset_password_token=zb1mZUEzxpymqE8qorDJ">Change my password</a></p>
<p>If you didn't request this, please ignore this email.</p>
<p>Your password won't change until you access the link above and create a new one.</p>
Redirected to http://localhost:3000/users/sign_in
Completed 302 Found in 3423ms (ActiveRecord: 0.0ms)
Эта проблема тесно связана с http://stackoverflow.com/questions/16422316/rails-app-on-heroku-sending-email-error – rails4sandeep
http://stackoverflow.com/questions/16422316/rails-app -on-heroku-send-email-error Эта проблема тесно связана с этим и исправлена сейчас – rails4sandeep