Hi @Coreysan ,
From the IEmailSender Interface and the Microsoft.AspNetCore.Identity.UI source code, we can see the Microsoft.AspNetCore.Identity.UI package contain the Microsoft.AspNetCore.Identity.UI.Services and the IEmailSender.
You can try to add the identity page via the Scaffold Identity. It will auto generate the identity pages and install the required packages, and then you can use the IEmailSender.
Note, by default, when using Scaffold, it will install the Microsoft.AspNetCore.Identity.UI 3.1.30 version, you can try to use this version.
Refer to the following steps to create an Asp.net core Application and use Scaffold Identity:
- Create an Asp.net core MVC application, select the "Individual Accounts" authentication type.
- From Solution Explorer, right-click on the project > Add > New Scaffolded Item.
- From the left pane of the Add New Scaffolded Item dialog, select Identity. Select Identity in the center pane. Select the Add button.
- In the Add Identity dialog, select the Identity Pages/DbContext you want.
- Select Add.
Then, in the Identity Area, you can find the identity pages, you can see that in the Register.cs file, it will use the IEmailSender interface.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion