AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::SESV2::Types::Message

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Message as input to an Aws::Client method, you can use a vanilla Hash:

{
  subject: { # required
    data: "MessageData", # required
    charset: "Charset",
  },
  body: { # required
    text: {
      data: "MessageData", # required
      charset: "Charset",
    },
    html: {
      data: "MessageData", # required
      charset: "Charset",
    },
  },
}

Represents the email message that you're sending. The Message object consists of a subject line and a message body.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#bodyTypes::Body

The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.

Returns:

#subjectTypes::Content

The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.

Returns: