Class SendEmailRequest
Represents request object used to send email, including recipient lists.
public sealed record SendEmailRequest : EmailRequest, IValidatable, IEquatable<EmailRequest>, IEquatable<SendEmailRequest>
- Inheritance
-
SendEmailRequest
- Implements
- Inherited Members
- Extension Methods
Properties
Bcc
Gets or sets a collection of EmailAddress objects, defining who will receive a blind carbon copy of email.
[JsonPropertyName("bcc")]
[JsonPropertyOrder(230)]
public IList<EmailAddress> Bcc { get; set; }
Property Value
- IList<EmailAddress>
A collection of EmailAddress objects.
Remarks
Each object in this collection must contain the recipient's email address.
Each object in this collection may optionally contain the recipient's name.
At least one recipient must be specified in one of the collections: To, Cc or Bcc.
The total recipients across To, Cc and Bcc must not exceed 1000.
Cc
Gets or sets a collection of EmailAddress objects, defining who will receive a carbon copy of email.
[JsonPropertyName("cc")]
[JsonPropertyOrder(220)]
public IList<EmailAddress> Cc { get; set; }
Property Value
- IList<EmailAddress>
A collection of EmailAddress objects.
Remarks
Each object in this collection must contain the recipient's email address.
Each object in this collection may optionally contain the recipient's name.
At least one recipient must be specified in one of the collections: To, Cc or Bcc.
The total recipients across To, Cc and Bcc must not exceed 1000.
To
Gets or sets a collection of EmailAddress objects, defining who will receive a copy of email.
[JsonPropertyName("to")]
[JsonPropertyOrder(210)]
public IList<EmailAddress> To { get; set; }
Property Value
- IList<EmailAddress>
A collection of EmailAddress objects.
Remarks
Each object in this collection must contain the recipient's email address.
Each object in this collection may optionally contain the recipient's name.
At least one recipient must be specified in one of the collections: To, Cc or Bcc.
The total recipients across To, Cc and Bcc must not exceed 1000.
Methods
Create()
Factory method that creates a new instance of SendEmailRequest request.
public static SendEmailRequest Create()
Returns
- SendEmailRequest
New SendEmailRequest instance.
Validate()
Validates the current instance.
public override ValidationResult Validate()
Returns
- ValidationResult
Object containing validation errors, if any.