Skip to content

Class SendGridInvitationDeliveryMessage

Namespace: Cephalon.MultiTenancy.Governance.SendGridDelivery.Services
Assembly: Cephalon.MultiTenancy.Governance.SendGridDelivery.dll

Describes a prepared SendGrid invitation delivery message.

public sealed class SendGridInvitationDeliveryMessage

objectSendGridInvitationDeliveryMessage

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

SendGridInvitationDeliveryMessage(string, string, string?, string, string?, string, string, string?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?, bool)

Section titled “ SendGridInvitationDeliveryMessage(string, string, string?, string, string?, string, string, string?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?, bool)”

Creates a prepared SendGrid invitation delivery message.

public SendGridInvitationDeliveryMessage(string messageId, string fromEmail, string? fromName, string toEmail, string? toName, string subject, string textBody, string? htmlBody = null, IReadOnlyList<string>? categories = null, IReadOnlyDictionary<string, string>? customArgs = null, IReadOnlyDictionary<string, string>? headers = null, bool sandboxMode = false)

messageId string

The deterministic Cephalon message identifier carried in SendGrid custom arguments.

fromEmail string

The sender email address.

fromName string?

The optional sender display name.

toEmail string

The recipient email address.

toName string?

The optional recipient display name.

subject string

The message subject.

textBody string

The plain-text message body.

htmlBody string?

The optional HTML message body.

categories IReadOnlyList<string>?

SendGrid categories attached to the message.

customArgs IReadOnlyDictionary<string, string>?

SendGrid custom arguments attached to the personalization.

headers IReadOnlyDictionary<string, string>?

Safe SendGrid message headers.

sandboxMode bool

A value indicating whether SendGrid sandbox mode should be enabled.

Gets SendGrid categories attached to the message.

public IReadOnlyList<string> Categories { get; }

IReadOnlyList<string>

Gets SendGrid custom arguments attached to the personalization.

public IReadOnlyDictionary<string, string> CustomArgs { get; }

IReadOnlyDictionary<string, string>

Gets the sender email address.

public string FromEmail { get; }

string

Gets the optional sender display name.

public string? FromName { get; }

string?

Gets safe SendGrid message headers.

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

IReadOnlyDictionary<string, string>

Gets the optional HTML message body.

public string? HtmlBody { get; }

string?

Gets the deterministic Cephalon message identifier carried in SendGrid custom arguments.

public string MessageId { get; }

string

Gets a value indicating whether SendGrid sandbox mode should be enabled.

public bool SandboxMode { get; }

bool

Gets the message subject.

public string Subject { get; }

string

Gets the plain-text message body.

public string TextBody { get; }

string

Gets the recipient email address.

public string ToEmail { get; }

string

Gets the optional recipient display name.

public string? ToName { get; }

string?