Strapi reset password not using email provider

Currently I’m using the lib strapi-provider-email-brevo as email provider. When i use the “send test email” option on configuration tab, i receive the email without any problems. But its not the same when i try to use forgot-password API.

Send Test Email option showing its using the right provider

Strapi email received without any problems

My strapi plugins.js file

I tried to debug the lib, writing some console.log anywhere in the code and when I use the test button on strapi it shows me the logs but when I try to do some request using api/auth/forgot-password seems like it did not use the provider lib ( And yeah, the permissions are currently true ( I also found an email api with “send” endpoint, I also tried to set it to true but it also didnt made any changes (

Request using thunder client on Vscode

System Information
  • Strapi Version: 4.13.7
  • Operating System: Ubuntu
  • Database: Sqlite3
  • Node Version: 18.18.1
  • NPM Version: 9.8.1
  • Yarn Version: -

I would open a issue for the provider since I am not sure if this is a provider issue or strapi issue

Any update on this matter? I’m having the same issue

Double-check your provider’s documentation. I had the same problem with SendGrid, but my issue was clearly documented on the SendGrid provider docs:

:warning: The Shipper Email (or defaultfrom) may also need to be changed in the Email Templates tab on the admin panel for emails to send properly

In SendGrid at least, you can only successfully send email from an email address that you have registered. By default, the Email Templates are sent from a placeholder email address (which of course wasn’t registered on my email provider). This sender is not configured in the code, but in the database (admin panel settings). The email test adheres to the code config.

Requests to api/auth/forgot-password return a 200 and seem to succeed, even with an invalid config, but the actual mail client probably returned an error that is not printed.

1 Like