Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deliver_reset_password_instructions! doesn't actually send the email #701

Open
adiakritos opened this issue Jun 30, 2015 · 3 comments
Open

Comments

@adiakritos
Copy link

deliver_reset_password_instructions! doesn't actually send the email, I have to specify this with the .deliver or .deliver_now command in my mailer action.

Running on Rails 4.2.2

@arnvald
Copy link
Collaborator

arnvald commented Jul 7, 2015

Hi @adiakritos,

do you mean that deliver_reset_password_instructions returns email object, on which you have to call deliver method? Or simply this method does not work and returns false?

@pake007
Copy link

pake007 commented Jun 30, 2016

is it because you trigger the deliver too frequently? in the config, there is:

hammering protection, how long in seconds to wait before allowing another email to be sent.

Default: 5 * 60

user.reset_password_time_between_emails =

@RobinDaugherty
Copy link

RobinDaugherty commented Aug 28, 2017

It might be the hammering protection, but I also found that any exception that occurs in the mailer (UserMailer by default) will be ignored by default in Rails' development environment.

To find the exception, set this in config/environments/development.rb:

  config.action_mailer.raise_delivery_errors = true

Now you should get information about the exception.

I recommend committing this, so that it acts like production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants