ข้ามไปยังเนื้อหา

Class SmtpInvitationDeliveryOptions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.MultiTenancy.Governance.SmtpDelivery.Configuration
Assembly: Cephalon.MultiTenancy.Governance.SmtpDelivery.dll

Configures SMTP relay delivery for tenant invitations dispatched by the governance companion pack.

public sealed class SmtpInvitationDeliveryOptions

objectSmtpInvitationDeliveryOptions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

The SMTP sender sends one email message through a configured SMTP relay. It does not own provider-specific transactional-email APIs, bounce handling, delivery callbacks, or public onboarding flows.

Gets or sets a value indicating whether the SMTP invitation sender should be registered.

public bool Enabled { get; set; }

bool

Gets or sets the sender email address used in the SMTP message.

public string? FromAddress { get; set; }

string?

Gets or sets the optional sender display name used in the SMTP message.

public string? FromDisplayName { get; set; }

string?

Gets or sets additional SMTP message headers added to every delivery message.

public IReadOnlyDictionary<string, string> Headers { get; set; }

IReadOnlyDictionary<string, string>

Gets or sets the SMTP relay host name.

public string? Host { get; set; }

string?

Gets or sets the optional HTML SMTP message body template.

public string? HtmlBodyTemplate { get; set; }

string?

Gets or sets a value indicating whether safe Cephalon context headers should be added to the SMTP message.

public bool IncludeContextHeaders { get; set; }

bool

Gets or sets the domain used for deterministic SMTP Message-Id values.

public string MessageIdDomain { get; set; }

string

Gets or sets the SMTP password when the relay requires explicit credentials.

public string? Password { get; set; }

string?

Gets or sets the SMTP relay port.

public int Port { get; set; }

int

Gets or sets the metadata key used to resolve the recipient email address when the invitee id is not an email address.

public string RecipientAddressMetadataKey { get; set; }

string

The sender checks dispatch metadata first and invitation metadata second. If neither contains a value and InviteeKind is email, the invitee id is treated as the recipient address.

Gets or sets the sender identifier used by TenantInvitationDeliveryRequest.SenderId.

public string SenderId { get; set; }

string

Gets or sets the SMTP message subject template.

public string SubjectTemplate { get; set; }

string

Gets or sets delivery channels accepted by this sender.

public IReadOnlyList<string> SupportedChannels { get; set; }

IReadOnlyList<string>

When empty, the sender accepts every requested channel.

Gets or sets the plain-text SMTP message body template.

public string TextBodyTemplate { get; set; }

string

Gets or sets the maximum time allowed for the SMTP send operation.

public int TimeoutSeconds { get; set; }

int

Gets or sets a value indicating whether SSL/TLS should be enabled for the SMTP relay connection.

public bool UseSsl { get; set; }

bool

Gets or sets the SMTP username when the relay requires explicit credentials.

public string? UserName { get; set; }

string?

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Binds SMTP invitation delivery options from configuration.

public static SmtpInvitationDeliveryOptions FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")

configuration IConfiguration

The application configuration root.

sectionPath string

The configuration section path that contains the engine settings. The default is Engine.

SmtpInvitationDeliveryOptions

The bound SMTP invitation delivery options.