Show / Hide Table of Contents

Class SubmitEmailDetails

Details that are required by the sender to submit a request to send email.

Inheritance
object
SubmitEmailDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.EmaildataplaneService.Models
Assembly: OCI.DotNetSDK.Emaildataplane.dll
Syntax
public class SubmitEmailDetails

Properties

BodyHtml

Declaration
[JsonProperty(PropertyName = "bodyHtml")]
public string BodyHtml { get; set; }
Property Value
Type Description
string

HTML body content in UTF-8. NOTE: Even though bodytext and bodyhtml are both optional, at least one of them must be provided.

BodyText

Declaration
[JsonProperty(PropertyName = "bodyText")]
public string BodyText { get; set; }
Property Value
Type Description
string

Text body content. NOTE: Even though bodytext and bodyhtml are both optional, at least one of them must be provided.

HeaderFields

Declaration
[JsonProperty(PropertyName = "headerFields")]
public Dictionary<string, string> HeaderFields { get; set; }
Property Value
Type Description
Dictionary<string, string>

The header used by the customer for the email sent. Reserved headers are not allowed e.g "subject", "from", and "to" etc. Example: {"bar-key": "value"}

MessageId

Declaration
[JsonProperty(PropertyName = "messageId")]
public string MessageId { get; set; }
Property Value
Type Description
string

The unique ID for the email's Message-ID header used for service log correlation. The submission will return an error if the syntax is not a valid RFC 5322 Message-ID. This will be generated if not provided. Example: sdiofu234qwermls24fd@mail.example.com

Recipients

Declaration
[Required(ErrorMessage = "Recipients is required.")]
[JsonProperty(PropertyName = "recipients")]
public Recipients Recipients { get; set; }
Property Value
Type Description
Recipients
Remarks

Required

ReplyTo

Declaration
[JsonProperty(PropertyName = "replyTo")]
public List<EmailAddress> ReplyTo { get; set; }
Property Value
Type Description
List<EmailAddress>

The email address for the recipient to reply to. If left blank, defaults to the sender address.

Sender

Declaration
[Required(ErrorMessage = "Sender is required.")]
[JsonProperty(PropertyName = "sender")]
public Sender Sender { get; set; }
Property Value
Type Description
Sender
Remarks

Required

Subject

Declaration
[Required(ErrorMessage = "Subject is required.")]
[JsonProperty(PropertyName = "subject")]
public string Subject { get; set; }
Property Value
Type Description
string

A short summary of the content, which will appear in the recipient's inbox. UTF-8 supported RFC 2047.

Remarks

Required

In this article
Back to top