I am testing Rails authentication on my localhost and want it to send emails to find the password (i.e. the "forgot password" link). Password recovery is built into Devise, itβs just a matter of properly setting up email for sending.
In the /devise.rb initializers, I put
config.mailer_sender = " i...@mydomain.com "
but when I tried to check the "forgot password" link on "Authentication for rails", I received the error message below. If I need to add other information for sending by email, what do I need to add and where?
In the user model, these are modules that are used by devise: database_authenticatable ,: registered,: restored ,: remembered ,: trackable ,: validatable
--- error message --- Errno :: ECONNREFUSED in Devise :: PasswordsController # create Connection refused - connect (2) Rails.root: / Users / myname / Sites / rails3d Application tracing | Frame Track | Complete route Request Parameters: {"Utf8" => "β", "Authenticity_token" => "8oO5vXqO4esl3ztn5yE7OkVxZe + Ju94jj76rbKR225I =", "User" => {"email" => "myemail ... @ gmail.com"} , "commit" => "Send me reset password instructions"} Show session dump Show env dump response Headers
source share