Skip to content

Message

Source code in docs_src/capo_sesv2/types/message.py
class Message(TypedDict, closed=True):
    subject: "capo_sesv2.types.content.Content"
    """<p>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 <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>.</p>"""
    body: "capo_sesv2.types.body.Body"
    """<p>The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.</p>"""
    headers: NotRequired["capo_sesv2.types.message_header_list.MessageHeaderList"]
    """<p>The list of message headers that will be added to the email message.</p>"""
    attachments: NotRequired["capo_sesv2.types.attachment_list.AttachmentList"]
    """<p> The List of attachments to include in your email. All recipients will receive the same attachments.</p>"""

attachments instance-attribute

attachments: NotRequired[AttachmentList]

The List of attachments to include in your email. All recipients will receive the same attachments.

body instance-attribute

body: Body

The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.

headers instance-attribute

headers: NotRequired[MessageHeaderList]

The list of message headers that will be added to the email message.

subject instance-attribute

subject: Content

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.