Submission
A submission is one message passed to one transport once.
Usage
Submission(
message,
from_address,
message_id,
date,
)Only Connection.send builds one. Sending a message twice makes two submissions with two ids, because identity belongs to the send. See ADR-0015.
Attributes
message: Message-
The message as the caller built it.
from_address: str-
The backend’s from address, which a Message never carries.
message_id: str-
The
Message-IDEpistole generated, with its angle brackets. date: datetime-
The
DateEpistole set, timezone-aware in the sending machine’s offset.
Methods
| Name | Description |
|---|---|
| as_bytes() |
Return the submission as an RFC 5322 message, the bytes of an .eml file.
|
as_bytes()
Return the submission as an RFC 5322 message, the bytes of an .eml file.
Usage
as_bytes()The bytes hold Bcc, so an audit copy names every recipient. A forwarded copy shows the bcc list too. Each call writes new MIME boundaries, so the bytes match what Gmail received except for those. SMTP sends them without Bcc. Graph receives JSON instead. Gmail replaces the Message-ID after it receives them. See ADR-0022.