Table of Contents

Class MailConfigurationSection

Namespace
NuvTools.Notification.Mail.Configuration
Assembly
NuvTools.Notification.Mail.dll

Contains the mail settings shared by every provider, loaded from the appsettings file.

The default section name is "Mail"

public class MailConfigurationSection
Inheritance
MailConfigurationSection
Derived
Inherited Members

Remarks

Provider specific packages derive from this class to add their own settings, keeping infrastructure details out of the abstraction. Bind the derived section with AddMailConfiguration<T>(IServiceCollection, IConfiguration, string).

Properties

DisplayName

Gets or sets the default display name for the sender when not explicitly specified in the message.

public string? DisplayName { get; set; }

Property Value

string

From

Gets or sets the default sender email address to use when not explicitly specified in the message.

public string? From { get; set; }

Property Value

string