Table of Contents

Class SendingDomain

Namespace
Mailtrap.SendingDomains.Models
Assembly
Mailtrap.Abstractions.dll

Represents sending domain information.
Lists domain attributes, DNS records, status, etc.

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

Properties

AlertRecipientEmail

Gets email address of the alerts recipient.

[JsonPropertyName("alert_recipient_email")]
[JsonPropertyOrder(13)]
public string? AlertRecipientEmail { get; set; }

Property Value

string

Email address of the alerts recipient.

AutoUnsubscribeLinkEnabled

Gets flag indicating if automatic unsubscribe link was enabled for the sending domain.

[JsonPropertyName("auto_unsubscribe_link_enabled")]
[JsonPropertyOrder(9)]
public bool? AutoUnsubscribeLinkEnabled { get; set; }

Property Value

bool?

true if automatic unsubscribe link was enabled.
false otherwise.

ClickTrackingEnabled

Gets flag indicating if click tracking was enabled for the sending domain.

[JsonPropertyName("click_tracking_enabled")]
[JsonPropertyOrder(8)]
public bool? ClickTrackingEnabled { get; set; }

Property Value

bool?

true if click tracking was enabled.
false otherwise.

ComplianceStatus

Gets compliance status of the domain.

[JsonPropertyName("compliance_status")]
[JsonPropertyOrder(4)]
public SendingDomainComplianceStatus ComplianceStatus { get; set; }

Property Value

SendingDomainComplianceStatus

Compliance status of domain.

CriticalAlertsEnabled

Gets flag indicating if critical alerts were enabled for the sending domain.

[JsonPropertyName("critical_alerts_enabled")]
[JsonPropertyOrder(12)]
public bool? CriticalAlertsEnabled { get; set; }

Property Value

bool?

true if critical alerts were enabled.
false otherwise.

CustomDomainTrackingEnabled

Gets flag indicating if custom domain tracking was enabled for the sending domain.

[JsonPropertyName("custom_domain_tracking_enabled")]
[JsonPropertyOrder(10)]
public bool? CustomDomainTrackingEnabled { get; set; }

Property Value

bool?

true if custom domain tracking was enabled.
false otherwise.

Demo

Gets flag indicating demo sending domain.

[JsonPropertyName("demo")]
[JsonPropertyOrder(3)]
public bool? Demo { get; set; }

Property Value

bool?

true if it is a demo sending domain.
false otherwise.

DnsRecords

Gets a list of DNS records for the domain.

[JsonPropertyName("dns_records")]
[JsonPropertyOrder(6)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<SendingDomainDnsRecord> DnsRecords { get; }

Property Value

IList<SendingDomainDnsRecord>

List of DNS records for domain.

DnsVerified

Gets flag indicating if DNS was verified for the sending domain.

[JsonPropertyName("dns_verified")]
[JsonPropertyOrder(5)]
public bool? DnsVerified { get; set; }

Property Value

bool?

true if DNS was verified.
false otherwise.

DomainName

Gets sending domain name.

[JsonPropertyName("domain_name")]
[JsonPropertyOrder(2)]
public string? DomainName { get; set; }

Property Value

string

Sending domain name.

HealthAlertsEnabled

Gets flag indicating if health alerts were enabled for the sending domain.

[JsonPropertyName("health_alerts_enabled")]
[JsonPropertyOrder(11)]
public bool? HealthAlertsEnabled { get; set; }

Property Value

bool?

true if health alerts were enabled.
false otherwise.

Id

Gets sending domain identifier.

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

Property Value

long

Sending domain identifier.

OpenTrackingEnabled

Gets flag indicating if open tracking was enabled for the sending domain.

[JsonPropertyName("open_tracking_enabled")]
[JsonPropertyOrder(7)]
public bool? OpenTrackingEnabled { get; set; }

Property Value

bool?

true if open tracking was enabled.
false otherwise.

Permissions

Gets permissions for the sending domain.

[JsonPropertyName("permissions")]
[JsonPropertyOrder(14)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public SendingDomainPermissions Permissions { get; }

Property Value

SendingDomainPermissions

Permissions for sending domain.