Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
Represents the email message that you're sending. The Message
object
consists of a subject line and a message body.
See: newMessage
smart constructor.
Message' | |
|
Instances
Eq Message Source # | |
Read Message Source # | |
Show Message Source # | |
Generic Message Source # | |
NFData Message Source # | |
Defined in Amazonka.SESV2.Types.Message | |
Hashable Message Source # | |
Defined in Amazonka.SESV2.Types.Message | |
ToJSON Message Source # | |
Defined in Amazonka.SESV2.Types.Message | |
type Rep Message Source # | |
Defined in Amazonka.SESV2.Types.Message type Rep Message = D1 ('MetaData "Message" "Amazonka.SESV2.Types.Message" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "Message'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Content) :*: S1 ('MetaSel ('Just "body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body))) |
Create a value of Message
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:subject:Message'
, message_subject
- 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.
$sel:body:Message'
, message_body
- The body of the message. You can specify an HTML version of the message,
a text-only version of the message, or both.