core.mail_processor.smtp ======================== .. py:module:: core.mail_processor.smtp .. autoapi-nested-parse:: Send E-Mail through SMTP Adapted from `repoze.sendmail`_. Usage:: mailer = smptlib.SMTP(host, port) qp = SMTPEmailQueueProcessor(mailer, maildir1, maildir2, ..., limit=x) qp.send_messages() Classes ------- .. autoapisummary:: core.mail_processor.smtp.SMTPMailQueueProcessor Module Contents --------------- .. py:class:: SMTPMailQueueProcessor(mailer: smtplib.SMTP, *paths: str, limit: int | None = None) Bases: :py:obj:`core.mail_processor.core.MailQueueProcessor` .. py:attribute:: mailer .. py:method:: parse_payload(filename: str, payload: str) -> list[email.message.EmailMessage] .. py:method:: send(filename: str, payload: str) -> bool Sends the mail and returns success as bool