THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class IMailTransport(ABC): (source)
Send already prepared mail without knowing views or storage declarations.
Implementations receive immutable MIME bytes plus a separate transport envelope, so they never resolve templates, disks, or Mailable classes.
| Async Method | send |
Transmit or store one complete message. |
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |
@abstractmethod
async def send(self, message: PreparedMail, *, mailer: str, driver: str) -> MailResult:
(source)
¶
Transmit or store one complete message.
| Parameters | |
message:orionis.mail.entities.PreparedMail | Immutable MIME bytes plus a separate transport envelope. |
mailer:str | Selected configuration name. |
driver:str | Registered transport implementation name. |
| Returns | |
orionis.mail.entities.MailResult | Confirmed acceptance, partial acceptance, or storage result. |
| Raises | |
orionis.mail.exceptions.MailTransportException | If the operation fails or all recipients are rejected. |