Class MailgunInvitationDeliveryOptions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.MultiTenancy.Governance.MailgunDelivery.Configuration
Assembly: Cephalon.MultiTenancy.Governance.MailgunDelivery.dll
Configures Mailgun Messages API delivery for tenant invitations dispatched by the governance companion pack.
public sealed class MailgunInvitationDeliveryOptionsInheritance
Section titled “Inheritance”object ← MailgunInvitationDeliveryOptions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Remarks
Section titled “Remarks”The Mailgun sender posts one multipart Messages API request to Mailgun. It does not own Mailgun webhook callbacks, bounce translation, provider polling, public onboarding, SMS, chat, CRM, or identity-provider invitation flows.
Constructors
Section titled “Constructors”MailgunInvitationDeliveryOptions()
Section titled “ MailgunInvitationDeliveryOptions()”Initializes a new instance of the
public MailgunInvitationDeliveryOptions()Properties
Section titled “Properties”AcceptedStatusCodes
Section titled “ AcceptedStatusCodes”Gets or sets response status codes that indicate the Mailgun API accepted the request.
public IReadOnlyList<int> AcceptedStatusCodes { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The default accepts 200 OK, which Mailgun returns when a message is queued.
ApiKey
Section titled “ ApiKey”Gets or sets the Mailgun private API key used with basic authentication.
public string? ApiKey { get; set; }Property Value
Section titled “Property Value”BaseUrl
Section titled “ BaseUrl”Gets or sets the Mailgun API base URL.
public string BaseUrl { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The default is the US endpoint. Hosts that use EU regional sending can set this value to
https://api.eu.mailgun.net.
DomainName
Section titled “ DomainName”Gets or sets the Mailgun sending domain name used in the Messages API route.
public string? DomainName { get; set; }Property Value
Section titled “Property Value”EnableTestMode
Section titled “ EnableTestMode”Gets or sets a value indicating whether Mailgun test mode should be enabled through o:testmode=yes.
public bool EnableTestMode { get; set; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Gets or sets a value indicating whether the Mailgun invitation sender should be registered.
public bool Enabled { get; set; }Property Value
Section titled “Property Value”FromEmail
Section titled “ FromEmail”Gets or sets the sender email address used in the Mailgun message.
public string? FromEmail { get; set; }Property Value
Section titled “Property Value”FromName
Section titled “ FromName”Gets or sets the optional sender display name used in the Mailgun message.
public string? FromName { get; set; }Property Value
Section titled “Property Value”Headers
Section titled “ Headers”Gets or sets additional Mailgun custom headers added through h:* form fields.
public IReadOnlyDictionary<string, string> Headers { get; set; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
Remarks
Section titled “Remarks”The sender filters empty, multi-line, and message-core headers before sending.
HtmlBodyTemplate
Section titled “ HtmlBodyTemplate”Gets or sets the optional HTML Mailgun message body template.
public string? HtmlBodyTemplate { get; set; }Property Value
Section titled “Property Value”IncludeContextHeaders
Section titled “ IncludeContextHeaders”Gets or sets a value indicating whether safe Cephalon custom headers should be added to the Mailgun request.
public bool IncludeContextHeaders { get; set; }Property Value
Section titled “Property Value”IncludeContextVariables
Section titled “ IncludeContextVariables”Gets or sets a value indicating whether safe Cephalon user variables should be added to the Mailgun request.
public bool IncludeContextVariables { get; set; }Property Value
Section titled “Property Value”ProviderMessageIdJsonPropertyName
Section titled “ ProviderMessageIdJsonPropertyName”Gets or sets the JSON property name that contains the Mailgun provider message identifier.
public string ProviderMessageIdJsonPropertyName { get; set; }Property Value
Section titled “Property Value”RecipientEmailMetadataKey
Section titled “ RecipientEmailMetadataKey”Gets or sets the metadata key used to resolve the recipient email address when the invitee id is not an email address.
public string RecipientEmailMetadataKey { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”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.
SenderId
Section titled “ SenderId”Gets or sets the sender identifier used by TenantInvitationDeliveryRequest.SenderId.
public string SenderId { get; set; }Property Value
Section titled “Property Value”SubjectTemplate
Section titled “ SubjectTemplate”Gets or sets the Mailgun message subject template.
public string SubjectTemplate { get; set; }Property Value
Section titled “Property Value”SupportedChannels
Section titled “ SupportedChannels”Gets or sets delivery channels accepted by this sender.
public IReadOnlyList<string> SupportedChannels { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”When empty, the sender accepts every requested channel.
Gets or sets Mailgun message tags added through o:tag form fields.
public IReadOnlyList<string> Tags { get; set; }Property Value
Section titled “Property Value”TextBodyTemplate
Section titled “ TextBodyTemplate”Gets or sets the plain-text Mailgun message body template.
public string TextBodyTemplate { get; set; }Property Value
Section titled “Property Value”TimeoutSeconds
Section titled “ TimeoutSeconds”Gets or sets the maximum time allowed for the Mailgun API request.
public int TimeoutSeconds { get; set; }Property Value
Section titled “Property Value”Variables
Section titled “ Variables”Gets or sets Mailgun user variables added through v:* form fields.
public IReadOnlyDictionary<string, string> Variables { get; set; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
Remarks
Section titled “Remarks”These values are sent to Mailgun and may appear in provider activity or webhook data. Do not put secrets here.
Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Binds Mailgun invitation delivery options from configuration.
public static MailgunInvitationDeliveryOptions FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration
The application configuration root.
sectionPath string
The configuration section path that contains the engine settings. The default is Engine.
Returns
Section titled “Returns”MailgunInvitationDeliveryOptions
The bound Mailgun invitation delivery options.