Table of Contents

Class SendEmailResponse

Namespace
Mailtrap.Emails.Responses
Assembly
Mailtrap.Abstractions.dll

Represents send email response object.

public record SendEmailResponse : IEquatable<SendEmailResponse>
Inheritance
SendEmailResponse
Implements
Derived

Properties

MessageIds

Gets a collection of IDs of emails that have been sent.

[JsonPropertyName("message_ids")]
[JsonPropertyOrder(2)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<string> MessageIds { get; }

Property Value

IList<string>

A collection of IDs of emails that have been sent.

Success

Gets a flag, indicating whether request succeeded or failed and response contains error(s).

[JsonPropertyName("success")]
[JsonPropertyOrder(1)]
[JsonInclude]
public bool Success { get; protected set; }

Property Value

bool

false when request failed and response contains error(s).
true when request succeeded.