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 |
Synopsis
- data RawMessage = RawMessage' {}
- newRawMessage :: ByteString -> RawMessage
- rawMessage_data :: Lens' RawMessage ByteString
Documentation
data RawMessage Source #
The raw email message.
See: newRawMessage
smart constructor.
RawMessage' | |
|
Instances
Create a value of RawMessage
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:data':RawMessage'
, rawMessage_data
- The raw email message. The message has to meet the following criteria:
- The message has to contain a header and a body, separated by one blank line.
- All of the required header fields must be present in the message.
- Each part of a multipart MIME message must be formatted properly.
- Attachments must be in a file format that Amazon Pinpoint supports.
- The entire message must be Base64 encoded.
- If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.
- The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.--
- - Note: This
Lens
automatically encodes and decodes Base64 data. - - The underlying isomorphism will encode to Base64 representation during
- - serialisation, and decode from Base64 representation during deserialisation.
- - This
Lens
accepts and returns only raw unencoded data.
rawMessage_data :: Lens' RawMessage ByteString Source #
The raw email message. The message has to meet the following criteria:
- The message has to contain a header and a body, separated by one blank line.
- All of the required header fields must be present in the message.
- Each part of a multipart MIME message must be formatted properly.
- Attachments must be in a file format that Amazon Pinpoint supports.
- The entire message must be Base64 encoded.
- If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.
- The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.--
- - Note: This
Lens
automatically encodes and decodes Base64 data. - - The underlying isomorphism will encode to Base64 representation during
- - serialisation, and decode from Base64 representation during deserialisation.
- - This
Lens
accepts and returns only raw unencoded data.