Table of Contents

Class EmailTemplate

Namespace
Mailtrap.EmailTemplates.Models
Assembly
Mailtrap.Abstractions.dll

Represents Email Template details.

public sealed record EmailTemplate : IEquatable<EmailTemplate>
Inheritance
EmailTemplate
Implements

Properties

BodyHtml

Gets or sets the email template body HTML.

[JsonPropertyName("body_html")]
[JsonPropertyOrder(7)]
public string BodyHtml { get; set; }

Property Value

string

Email template's body HTML.

Remarks

Email template body HTML must be no longer than 10_000_000 characters.

BodyText

Gets or sets the email template body text.

[JsonPropertyName("body_text")]
[JsonPropertyOrder(6)]
public string BodyText { get; set; }

Property Value

string

Email template's body text.

Remarks

Email template body text must be no longer than 10_000_000 characters.

Category

Gets or sets the email template category.

[JsonPropertyName("category")]
[JsonPropertyOrder(4)]
public string Category { get; set; }

Property Value

string

Email template category.

Remarks

Email template category must be no longer than 255 characters.

CreatedAt

Gets or sets the email template creation date and time.

[JsonPropertyName("created_at")]
[JsonPropertyOrder(8)]
public DateTimeOffset CreatedAt { get; set; }

Property Value

DateTimeOffset

Email template creation date and time.

Id

Gets or sets email template identifier.

[JsonPropertyName("id")]
[JsonPropertyOrder(1)]
public long Id { get; set; }

Property Value

long

Email template identifier.

Name

Gets or sets email template name.

[JsonPropertyName("name")]
[JsonPropertyOrder(3)]
public string Name { get; set; }

Property Value

string

Email template name.

Remarks

Email template name must be no longer than 255 characters.

Subject

Gets or sets the email template subject.

[JsonPropertyName("subject")]
[JsonPropertyOrder(5)]
public string Subject { get; set; }

Property Value

string

Email template subject.

Remarks

Email template subject must be no longer than 255 characters.

UpdatedAt

Gets or sets the email template date and time of update.

[JsonPropertyName("updated_at")]
[JsonPropertyOrder(9)]
public DateTimeOffset UpdatedAt { get; set; }

Property Value

DateTimeOffset

Email template date and time of update.

Uuid

Gets or sets email template unique identifier.

[JsonPropertyName("uuid")]
[JsonPropertyOrder(2)]
public string Uuid { get; set; }

Property Value

string

Email template unique identifier.