Registry / communication / repoze-sendmail

repoze-sendmail

JSON →
library4.5pypypiunverified

A Python library for sending email via SMTP or a queued delivery mechanism. Provides a transaction-aware mail delivery interface with support for multiple delivery modes. Current version 4.4.1, stable but infrequently updated.

pip install repoze.sendmail
INSTALL
IMPORT
SIG · REPOZE-SENDMAIL
R
repoze-sendmail
communicationpythonv4.5
Install
1.6s avg
Import
80ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v4.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.016s · 17.9MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.016s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DirectMailDelivery
✓ from repoze.sendmail.delivery import DirectMailDelivery
✗ from repoze.sendmail.delivery import DirectMailDelivery

Sends an email directly via SMTP using DirectMailDelivery and SMTPMailer.

from repoze.sendmail.delivery import DirectMailDelivery from repoze.sendmail.mailer import SMTPMailer mailer = SMTPMailer(hostname='localhost', port=25) delivery = DirectMailDelivery(mailer) from_addr = 'sender@example.com' to_addrs = ['recipient@example.com'] msg = b'Subject: Test\n\nHello!' delivery.send(from_addr, to_addrs, msg)
Debug
Known issues
breakingIn version 4.0, the import path for mailer classes changed. The old repoze.sendmail.mailer module was split into separate classes.
fix
Update imports: from repoze.sendmail.mailer import SMTPMailer instead of the old alias.
affects: <4.0
deprecatedThe use of the 'mailer_factory' function is deprecated. Use DirectMailDelivery or QueuedMailDelivery directly.
fix
Replace mailer_factory calls with explicit delivery class instantiation.
affects: >=4.0
gotchaThe library requires the 'transaction' package for queued delivery. If you don't use a transaction manager, the message may not be delivered until the transaction commits.
fix
Ensure you have a transaction manager (e.g., Zope or pyramid_tm) when using QueuedMailDelivery.
affects: All
Upgrade
Version history
4.5latest on PyPI · released May 4, 2026
Audit
Dependencies
transactionrequiredRequired for transactional email delivery
setuptoolsoptionalRequired for package metadata and entry points
Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
1
Resources
repoze-sendmail — pip install repoze-sendmail · libregistry