| 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.SESV2.Types.RawMessage
Description
Synopsis
- data RawMessage = RawMessage' {}
- newRawMessage :: ByteString -> RawMessage
- rawMessage_data :: Lens' RawMessage ByteString
Documentation
data RawMessage Source #
Represents the raw content of an email message.
See: newRawMessage smart constructor.
Constructors
| RawMessage' | |
Fields
| |
Instances
Arguments
| :: ByteString | |
| -> RawMessage |
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 the Amazon SES 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
Lensautomatically encodes and decodes Base64 data. - - The underlying isomorphism will encode to Base64 representation during
- - serialisation, and decode from Base64 representation during deserialisation.
- - This
Lensaccepts 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 the Amazon SES 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
Lensautomatically encodes and decodes Base64 data. - - The underlying isomorphism will encode to Base64 representation during
- - serialisation, and decode from Base64 representation during deserialisation.
- - This
Lensaccepts and returns only raw unencoded data.