Skip to main content

Repoze Sendmail

Project description

https://travis-ci.org/repoze/repoze.sendmail.png?branch=master https://img.shields.io/pypi/v/repoze.sendmail.svg https://img.shields.io/pypi/pyversions/repoze.sendmail.svg

repoze.sendmail allows coupling the sending of email messages with a transaction, using the Zope transaction manager. This allows messages to only be sent out when and if a transaction is committed, preventing users from receiving notifications about events which may not have completed successfully.

Please see docs/index.rst for complete documentation, or read the docs online at http://docs.repoze.org/sendmail

Change history

4.3 (2016-12-08)

  • Drop support for Python 2.6 and 3.2.

  • Add support for Python 3.4 and 3.5.

  • Add ignore_transient parameter to QueueProcessor, to prevent raising temporary errors in some situations. (PR #37)

  • Reset ‘tpc_phase’ to zero during ‘tpc_abort’ / ‘tpc_finish’. (issue #30)

4.2 (2014-02-17)

  • Add “savepoint” support to transactional mail integration. (PR #24/28)

  • Mail Delivery utilities can now be passed a transaction manager (falling back to the ‘’transaction.get()`` default), making it easier to override. (PR #27)

4.1 (2013-06-26)

  • Replace ‘utf_8’ encoding name with preferred spelling (‘utf-8’).

  • Replace ‘latin_1’ encoding name with preferred spelling (‘iso-8859-1’)

  • Include the time of the error when logging errors from the queue processor.

  • response.MIMEPart now correctly sets the charset of the email payload if it’s one of the content_type parameters of the Message or Attachment.

  • The SMTPMailer now accepts an “ssl” argument, which, if passed, will cause the SMTP factory to return an SMTP_SSL connection instead of a plain old SMTP connection.

  • The SMTPMailer now uses a 10-second timeout by default, used when an SMTP connection is made but the server does not respond in enough time.

4.0 (2013-04-23)

  • Add support for bulding docs and testing doctest snippets under tox.

  • Add setup.py docs alias (installs Sphinx).

  • Converted docs to Sphinx.

4.0b2 (2013-03-28)

  • Issue #13: fixed handling of headers with with multibyte unicode characters at the point where the header is split into multiple lines.

  • Pull #15 - Extended repoze.sendmail with configurable /usr/sbin/sendmail binary support

4.0b1 (2013-01-09)

  • Dropped support for Jython until a Jython-2.7-compatible version of zope.interface becomes available.

  • Dropped support for Python 2.5.

  • Added suupport for Python 3.3.

  • Improved test for SSL feature under Python 3.x.

  • Added new tests for proper encoding of binary attachments.

  • Cauterized resource leak warnings under Python 3.2.

3.2 (2012-05-03)

  • Issue #7: fixed handling of to/from addresses with non-ascii characters when using queued mail delivery.

  • Suppressed duplicate usage message output from qp.

3.1 (2012-03-26)

  • Fixed qp queue processor mail delivery under Python 3.0.

  • Added ‘setup.py dev’ alias (runs setup.py develop plus installs nose and coverage).

3.0 (2012-03-20)

  • Fixed Message-Id handling (see http://bugs.repoze.org/issue177).

  • Provided improved support for encoding messages to bytes. It should now be possible to represent your messages in email.message.Message objects just with unicode (excepting bytes for binary attachments) and the mailer will handler it as appropriate.

  • Added tests for cPython 2.5, 2.6, 2.7, 3.2, jython 2.5 and pypy 1.8 compatibility.

2.3 (2011-05-17)

  • Queued delivery now creates a copy of the passed in messsage before adding the ‘X-Actually-{To,From}’ headers. This avoids rudely mutating the message being sent in ways that might not be expected by the sender. (LP #780000)

2.2 (2010-09-14)

  • Made debug output for SMTP mailer optional. (Thanks to Igor Stroh for patch.)

2.1 (2010-07-28)

  • Silently ignore redundant calls to abort transaction. (LP #580164)

2.0 (2010-03-10)

Represents major refactoring with a number of backwards incompatible changes. The focus of the changes is on simplifying and updating the internals, removing usage of deprecated APIs, removing unused functionality and using the email module from the standard library wherever possible. A few changes have been made solely to reduce internal complexity.

  • Public facing APIs no longer accept messages passed as strings. Messages must be instances of email.message.Message.

  • Deprecated APIs have been replaced with newer ‘email’ module throughout.

  • Functions that return message ids no longer strip containing less than and greater than characters.

  • Events were removed entirely. There was nothing in the code actually performing a notify anyway. Removes dependency on zope.event.

  • Normalized directory structure. (Got rid of ‘src’ directory.)

  • Got rid of functions to send queued mail from a thread or a daemon process. These are more appropriately handled in the calling code.

  • Removed vocabulary. It was a fossil from its days as zope.sendmail and was not used by anything.

  • Got rid of the zcml directives. These were written in such a way that you would end up putting deployment configuration in your zcml, which is a fundamentally broken pattern. Users of the ZCA may still register utilities aginst the IMailDelivery and IMailer interfaces. This is the recommended way to use repoze.sendmail with the Zope Component Architecture.

  • Removed all interfaces that did not correspond to a rational plug point. This leaves only IMailDelivery and IMailer.

  • Removed dependency on zope.i18nmessageid

  • No longer works under Python 2.4 (Python 2.5 required).

1.2 (2010-02-11)

  • Maildir storage for queue can now handle unicode passed in for message or to/from addresses.

1.1 (2009-02-24)

  • Added logging to queue processor console app.

  • Added ini config parsing to queue processor console app.

1.0 (2009-02-24)

  • Initial release

  • Copy of zope.sendmail with dependency on security removed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repoze.sendmail-4.3.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

repoze.sendmail-4.3-py2.py3-none-any.whl (40.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file repoze.sendmail-4.3.tar.gz.

File metadata

  • Download URL: repoze.sendmail-4.3.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for repoze.sendmail-4.3.tar.gz
Algorithm Hash digest
SHA256 062f6f7ff9f39930d929ac72e0a9bf3d434644d4e2cbcf08c43c619c44a00340
MD5 9ab4664d76ae98bc79c7d263c7fe6d97
BLAKE2b-256 5460102fdd3a16f3d42f6b3e429116ac190a2c78c629d50a82cbc7d4193c7cdc

See more details on using hashes here.

File details

Details for the file repoze.sendmail-4.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for repoze.sendmail-4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0ca69eea699f946aebe2bd60acd426759d060997404339f9ab9ca2a8c48b2569
MD5 d927fd31b749bc7bfd51d71d1279c0db
BLAKE2b-256 6527de2af751112db8a715ef271307a85eb9dd363110788e0283c1d081d9770d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page