| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.PinpointEmail.Types.Message
Description
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.
Constructors
| Message' | |
Fields
| |
Instances
| ToJSON Message Source # | |
Defined in Amazonka.PinpointEmail.Types.Message | |
| Generic Message Source # | |
| Read Message Source # | |
| Show Message Source # | |
| NFData Message Source # | |
Defined in Amazonka.PinpointEmail.Types.Message | |
| Eq Message Source # | |
| Hashable Message Source # | |
Defined in Amazonka.PinpointEmail.Types.Message | |
| type Rep Message Source # | |
Defined in Amazonka.PinpointEmail.Types.Message type Rep Message = D1 ('MetaData "Message" "Amazonka.PinpointEmail.Types.Message" "amazonka-pinpoint-email-2.0-EgVsRBIHQXMGA9Xbyu2BvI" '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.