core.mail_processor.postmark

Send E-Mail through Postmark

Adapted from repoze.sendmail: https://github.com/repoze/repoze.sendmail

Usage:

qp = PostmarkQueueProcessor(token, maildir, maildir, …, limit=x) qp.send_messages()

Module Contents

Classes

PostmarkMailQueueProcessor

class core.mail_processor.postmark.PostmarkMailQueueProcessor(postmark_token: str, *paths: str, limit: int | None = None)[source]

Bases: core.mail_processor.core.MailQueueProcessor

send(filename: str, payload: str) bool[source]

Sends the mail and returns success as bool

send_request(payload: str) tuple[int, str][source]

Performes the API request using the given payload.