forktex-mail

Send and receive e-mail from any Python process

SMTP to send, one connection per message or one session for many; IMAP to read a mailbox incrementally, file, mark, move and delete. Every failure says who has to act and whether to retry.

Stage
Stable: semantic versioning
Licence
AGPL-3.0-or-later, or a commercial licence from FORKTEX S.R.L.

What it does

Sign in with a password, an app password, or an OAuth2 token for Microsoft 365, Outlook.com and Gmail.

Failures classified from the codes SMTP and IMAP define, never from a provider's wording.

Bounces read back and matched to the message that caused them.

A test transport for your own code that sends mail, without a server.

Technologies

ForkTex Mail

Contribute

The source and the issues are on GitHub; every release is on PyPI.