Gateway Time-out Error after calling api/auth/forgot-password in Strapi v5

System Information
  • Strapi Version: 4.12.4
  • Operating System: Macbook Sonoma 14.3
  • Database: Postgres
  • Node Version: “>=14.19.1 <=16.x.x”,
  • NPM Version: “>=6.0.0”
  • Yarn Version:

Hello everyone,

I am trying to implement the forgot password functionality in strapi v4. I am following the instructions that are listed [here](https://docs.strapi.io/dev-docs/plugins/users-permissions#forgotten-password-ask-for-the-reset-password-link), but I am getting timeout error after testing the API in postman.

In the image below, I am showing the changes I have made in strapi dashboard and the error I get in postman.

Does anyone know what else do I have to do to make it work?

Thanks in advance

I have an update to that, I finally found out that I have to use an email provider. So I have installed @strapi/provider-email-nodemailer and add this content in plugins.js file.

I am trying to test email delivery through Strapi settings, but it fails.

What else should I do?