Class ReplyInboundMessageRequest
Request body for replying to (or reply-all-ing) an inbound message.
From is rejected for Mailtrap-hosted inboxes and required for
custom-domain inboxes. A body (Text and/or Html)
is required by the API for reply and reply_all.
public sealed record ReplyInboundMessageRequest : IEquatable<ReplyInboundMessageRequest>
- Inheritance
-
ReplyInboundMessageRequest
- Implements
Properties
Attachments
Gets or sets the attachments for the sent message.
[JsonPropertyName("attachments")]
public IList<Attachment>? Attachments { get; set; }
Property Value
- IList<Attachment>
Attachments for the sent message.
Bcc
Gets or sets the blind carbon-copy addresses.
[JsonPropertyName("bcc")]
public IList<EmailAddress>? Bcc { get; set; }
Property Value
- IList<EmailAddress>
Blind carbon-copy addresses.
Category
Gets or sets the Email API category for the sent message.
[JsonPropertyName("category")]
public string? Category { get; set; }
Property Value
- string
Email API category for the sent message.
Cc
Gets or sets the carbon-copy addresses.
[JsonPropertyName("cc")]
public IList<EmailAddress>? Cc { get; set; }
Property Value
- IList<EmailAddress>
Carbon-copy addresses.
CustomVariables
Gets or sets Email API custom variables for the sent message.
[JsonPropertyName("custom_variables")]
public IDictionary<string, string>? CustomVariables { get; set; }
Property Value
- IDictionary<string, string>
Email API custom variables for the sent message.
From
Gets or sets the sender address.
[JsonPropertyName("from")]
public EmailAddress? From { get; set; }
Property Value
- EmailAddress
Sender address.
Headers
Gets or sets custom headers to add to the sent message.
[JsonPropertyName("headers")]
public IDictionary<string, string>? Headers { get; set; }
Property Value
- IDictionary<string, string>
Custom headers to add to the sent message.
Html
Gets or sets the HTML body.
[JsonPropertyName("html")]
public string? Html { get; set; }
Property Value
- string
HTML body.
ReplyTo
Gets or sets the reply-to address.
[JsonPropertyName("reply_to")]
public EmailAddress? ReplyTo { get; set; }
Property Value
- EmailAddress
Reply-to address.
Text
Gets or sets the plain-text body.
[JsonPropertyName("text")]
public string? Text { get; set; }
Property Value
- string
Plain-text body.
To
Gets or sets the recipient addresses. Overrides the default recipient when set.
[JsonPropertyName("to")]
public IList<EmailAddress>? To { get; set; }
Property Value
- IList<EmailAddress>
Recipient addresses.