AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Message

import "github.com/aws/aws-sdk-go/service/ses"

type Message struct { Body *Body `type:"structure" required:"true"` Subject *Content `type:"structure" required:"true"` }

Represents the message to be sent, composed of a subject and a body.

Body

Represents the body of the message. You can specify text, HTML, or both. If you use both, then the message should display correctly in the widest variety of email clients.

Subject

Represents textual data, plus an optional character set specification.

By default, the text must be 7-bit ASCII, due to the constraints of the SMTP protocol. If the text must contain any other characters, then you must also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.

Method

GoString

func (s Message) GoString() string

GoString returns the string representation

SetBody

func (s *Message) SetBody(v *Body) *Message

SetBody sets the Body field's value.

SetSubject

func (s *Message) SetSubject(v *Content) *Message

SetSubject sets the Subject field's value.

String

func (s Message) String() string

String returns the string representation

Validate

func (s *Message) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: