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

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?