Skip to content

EmailContent

Source code in docs_src/capo_pinpoint_email/types/email_content.py
class EmailContent(TypedDict, closed=True):
    simple: NotRequired["capo_pinpoint_email.types.message.Message"]
    """<p>The simple email message. The message consists of a subject and a message body.</p>"""
    raw: NotRequired["capo_pinpoint_email.types.raw_message.RawMessage"]
    """<p>The raw email message. The message has to meet the following criteria:</p> <ul> <li> <p>The message has to contain a header and a body, separated by one blank line.</p> </li> <li> <p>All of the required header fields must be present in the message.</p> </li> <li> <p>Each part of a multipart MIME message must be formatted properly.</p> </li> <li> <p>If you include attachments, they must be in a file format that Amazon Pinpoint supports. </p> </li> <li> <p>The entire message must be Base64 encoded.</p> </li> <li> <p>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.</p> </li> <li> <p>The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in <a href="https://tools.ietf.org/html/rfc5321">RFC 5321</a>.</p> </li> </ul>"""
    template: NotRequired["capo_pinpoint_email.types.template.Template"]
    """<p>The template to use for the email message.</p>"""

raw instance-attribute

raw: NotRequired[RawMessage]

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.

  • If you include attachments, they 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.

simple instance-attribute

simple: NotRequired[Message]

The simple email message. The message consists of a subject and a message body.

template instance-attribute

template: NotRequired[Template]

The template to use for the email message.