Adding an email sending service
The IEmailSender
interface is a set of ASP.NET Core built-in APIs that fully supports the ASP.NET Core Identity default UI infrastructure: such an interface can be implemented by creating a custom IEmailSender-derived class that can be used within any web application to asynchronously send email messages in a structured, transparent, and consistent way.
For additional info about the IEmailSender
interface, check out the official documentation at the following URL:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.ui.services.iemailsender
In this section, we'll explain how we can implement such an interface in order to allow any ASP.NET Core web application to send email messages.
More precisely, we'll see how to achieve this result using two alternative methods:
- A transactional email API provided by a third-party service such as SendGrid, Autopilot, and the like
- An external...