core.mail_processor.smtp

Send E-Mail through SMTP

Adapted from `repoze.sendmail<https://github.com/repoze/repoze.sendmail>`_.

Usage:

mailer = smptlib.SMTP(host, port)
qp = SMTPEmailQueueProcessor(mailer, maildir1, maildir2, ..., limit=x)
qp.send_messages()

Classes

SMTPMailQueueProcessor

Module Contents

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

Bases: core.mail_processor.core.MailQueueProcessor

mailer[source]
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