[ACCEPTED]-How to manually send a Devise email?-devise
Accepted answer
Here’s where the ConfirmationsController
sends the email:
self.resource = resource_class.send_confirmation_instructions(resource_params)
Have you tried this?
u.send_confirmation_instructions
EDIT to 1 add Devise::Mailer
-based method:
u.send(:generate_confirmation_token)
Devise::Mailer.confirmation_instructions(u, u.instance_variable_get(:@raw_confirmation_token))
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.