0

I have a project in .NET Core 3.1 and the frontend with React.

It was generated using the scaffold instructions from this link.

When I try to trigger forgot password action, it shows a success page but there's no email being sent. The email exists in the database under the AspNetUsers table.

What could be wrong?

Some screenshots for reference.

enter image description here

enter image description here

Felipe Peña
  • 2,712
  • 4
  • 22
  • 41

1 Answers1

2

Please check the values of NormalizedEmail and EmailConfirmed in AspNetUsers. If the value of NormalizedEmail is null or the value of EmailConfirmed is false, the email may not be sent By default, the Send Complete screen is displayed even if the email has not been sent. You also need to add an EmailSender in startup.cs.

Send email with .NET Core 2.2 ...

hoge
  • 36
  • 2
  • Thanks! The reason this was not working was because there was no `EmailSender` class declared, and then also added to `Startup.cs` – Felipe Peña Aug 24 '20 at 19:33