core.mail_processor

Submodules

Classes

PostmarkMailQueueProcessor

SMTPMailQueueProcessor

Package Contents

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

Bases: core.mail_processor.core.MailQueueProcessor

url = 'https://api.postmarkapp.com/email/batch'
curl
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.

class core.mail_processor.SMTPMailQueueProcessor(mailer: smtplib.SMTP, *paths: str, limit: int | None = None)[source]

Bases: core.mail_processor.core.MailQueueProcessor

mailer
parse_payload(filename: str, payload: str) list[email.message.EmailMessage][source]
send(filename: str, payload: str) bool[source]

Sends the mail and returns success as bool