I'm using Magento 2.1 When I try to reset my password by using forgot password link, I get following error.
Error : We're unable to send the password reset email.
You will require to install SMTP module to send email in Magento2.Magento 2 default not providing this feature.
You can install below module and configure settings
After install put your email id and password in settings and send test mail.
if you still getting issue,check your log file and let me know.
Note: Install module with composer.
There is no need to install any custom module to configure custom SMTP.
Magento now provides DotMailer module by default, which provides the option to configure sending emails using custom SMTP.
To do so, follow the below steps:
Please let me know if you find any problem.
Please look up the table admin_user on your database and try to change the password for the user name which you're trying to reset.
If you still not able to access the admin, please run the below commands:
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento cache:flush
I hope this will help for you.
Since at least the newest security patch in June 2019 Magneto 2(.1.18)'s forgotpassword.phtml customer module template has a form key like the one below.
Without the form key, the form will fail, which is likely if your theme includes a custom forgotpassword.phtml based off an earlier version of Magento.getBlockHtml('formkey')?>