Share via


NoOpEmailSender Class

Definition

The default IEmailSender that does nothing in SendEmailAsync(String, String, String). It is used to detect that the IEmailSender has been customized. If not, Identity UI provides a development experience where the email confirmation link is rendered by the UI immediately rather than sent via an email.

public sealed class NoOpEmailSender : Microsoft.AspNetCore.Identity.UI.Services.IEmailSender
type NoOpEmailSender = class
    interface IEmailSender
Public NotInheritable Class NoOpEmailSender
Implements IEmailSender
Inheritance
NoOpEmailSender
Implements

Constructors

NoOpEmailSender()

Methods

SendEmailAsync(String, String, String)

This method does nothing other return CompletedTask. It should be replaced by a custom implementation in production.

Applies to