Show / Hide Table of Contents

Class SubmitRawEmailRequest

Inheritance
object
SubmitRawEmailRequest
Implements
IOciRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.EmaildataplaneService.Requests
Assembly: OCI.DotNetSDK.Emaildataplane.dll
Syntax
public class SubmitRawEmailRequest : IOciRequest
Examples

Click here to see an example of how to use SubmitRawEmail request.

Properties

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[HttpConverter(TargetEnum.Header, "compartment-id")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment that contains the approved sender resource.

Remarks

Required

ContentLength

Declaration
[HttpConverter(TargetEnum.Header, "content-length")]
public long? ContentLength { get; set; }
Property Value
Type Description
long?

The content length of the body.

ContentType

Declaration
[Required(ErrorMessage = "ContentType is required.")]
[HttpConverter(TargetEnum.Header, "content-type")]
public SubmitRawEmailRequest.ContentTypeEnum? ContentType { get; set; }
Property Value
Type Description
SubmitRawEmailRequest.ContentTypeEnum?

The media type of the body.

Remarks

Required

OpcRequestId

Declaration
[HttpConverter(TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
Property Value
Type Description
string

The request ID for tracing from the system

RawMessage

Declaration
[Required(ErrorMessage = "RawMessage is required.")]
[HttpConverter(TargetEnum.Body)]
public Stream RawMessage { get; set; }
Property Value
Type Description
Stream

This should be formatted in valid MIME format. Message can include attachments. MIME libraries should be used to convert the content into the appropriate format.

Remarks

Required

Recipients

Declaration
[Required(ErrorMessage = "Recipients is required.")]
[HttpConverter(TargetEnum.Header, "recipients")]
public List<string> Recipients { get; set; }
Property Value
Type Description
List<string>

The destination for the email, all recipients including to, cc and bcc addresses.

Remarks

Required

Sender

Declaration
[Required(ErrorMessage = "Sender is required.")]
[HttpConverter(TargetEnum.Header, "sender")]
public string Sender { get; set; }
Property Value
Type Description
string

The envelope and the header from email address, that is sending the email. Email address must be an approved sender.

Remarks

Required

Implements

IOciRequest
In this article
Back to top