Class ForwardInboundMessageRequest
Request body for forwarding an inbound message.
Requires at least one To recipient. From is
rejected for Mailtrap-hosted inboxes and required for custom-domain inboxes.
The body may be omitted, since the original message is quoted automatically.
public sealed record ForwardInboundMessageRequest : IValidatable, IEquatable<ForwardInboundMessageRequest>
- Inheritance
-
ForwardInboundMessageRequest
- 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. At least one is required.
[JsonPropertyName("to")]
public IList<EmailAddress>? To { get; set; }
Property Value
- IList<EmailAddress>
Recipient addresses.
Methods
Validate()
Validates the current instance.
public ValidationResult Validate()
Returns
- ValidationResult
Object containing validation errors, if any.