Skip to main content

zope.sendmail integration for Zope.

Project description

https://api.travis-ci.org/zopefoundation/Products.MailHost.svg?branch=master https://coveralls.io/repos/github/zopefoundation/Products.MailHost/badge.svg?branch=master Latest stable release on PyPI Stable release supported Python versions

Products.MailHost

The MailHost product provides support for sending email from within the Zope environment using MailHost objects.

An optional character set can be specified to automatically encode unicode input, and perform appropriate RFC 2822 header and body encoding for the specified character set. Full python email.Message.Message objects may be sent.

Email can optionally be encoded using Base64 or Quoted-Printable encoding (though automatic body encoding will be applied if a character set is specified).

Usage

MailHost provides integration with the Zope transaction system and optional support for asynchronous mail delivery. Asynchronous mail delivery is implemented using a queue and a dedicated thread processing the queue. The thread is (re)-started automatically when sending an email. The thread can be started manually (in case of restart) by calling its manage_restartQueueThread?action=start method through HTTP. There is currently no possibility to start the thread at Zope startup time.

Supports TLS/SSL encryption (requires Python compiled with SSL support).

Configuration

To force MailHost to only queue mails without sending them, activate queuing in the ZMI and set the environment variable MAILHOST_QUEUE_ONLY=1. This could be helpful in a staging environment where mails should not be sent.

Changelog

4.6 (2019-05-16)

  • Fix breaking sendmail tag rendering with DocumentTemplate > 3

4.5 (2019-04-07)

  • Prevent ZMI blowups when pointing to a non-Maildir queue folder (#2)

  • Changed ZMI forms for Zope 4 ZMI compliance (#17)

  • Packaging and test configuration cleanup

  • Add badges to the README

4.4 (2019-04-03)

  • Add ability to disable sending of queued mails. Details see README.rst. (#14)

4.3 (2019-03-08)

  • silence deprecation warning due to non-raw regex (#13)

  • Specify supported Python versions using python_requires in setup.py (Zope#481)

  • Add support for Python 3.8

4.2 (2018-10-05)

  • Add icon for Bootstrap ZMI.

  • Fix start-up in case Products.GenericSetup is not installed. (#9)

  • Add support for Python 3.7.

4.1 (2018-05-20)

  • Fix GenericSetup support for GenericSetup 2.x

  • Fix DeprecationWarnings

  • PEP-8 code style compliance

  • Drop support for Python 3.4

4.0 (2017-09-14)

  • Move GenericSetup export/import support from the GenericSetup package to MailHost as a setuptools extra.

  • Python 3 compatibility

  • Require Zope 4, aka drop Zope 2.13 support.

  • add test coverage reporting

  • Use @implementer class decorator.

  • Drop long-deprecated support for uuencoded emails.

3.0 (2016-07-18)

  • Remove HelpSys support.

2.13.2 (2014-11-02)

  • Adjust tests to pass with latest zope.sendmail versions.

  • Specify detailed distribution dependencies.

2.13.1 (2010-09-25)

  • LP #642728: Fixed TypeError on nested multi part messages in MailHost.

2.13.0 (2010-07-13)

  • Released as separate package.

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

Products.MailHost-4.6.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

Products.MailHost-4.6-py2.py3-none-any.whl (27.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Products.MailHost-4.6.tar.gz.

File metadata

  • Download URL: Products.MailHost-4.6.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for Products.MailHost-4.6.tar.gz
Algorithm Hash digest
SHA256 4b411016c013ee234ceeb3238272961382473d9a830278ff97c16cf9305c2e9b
MD5 1f218e7f2740434d73cd36e3115acbe9
BLAKE2b-256 ad1f19ab7c40b7c9146cb31f84b997b1e709db1d41484bbcc487ab29222f0ee5

See more details on using hashes here.

File details

Details for the file Products.MailHost-4.6-py2.py3-none-any.whl.

File metadata

  • Download URL: Products.MailHost-4.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for Products.MailHost-4.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0d5806c25605ae2be73fbf1f9055074ba407fdbcd72e4706bddd7703e0734215
MD5 99bf3c40018fb3b7dcf46d1145236f06
BLAKE2b-256 f133b5f590f8aedaaa10071c52429a1ca58b09e8fac7ae01ab7e184a9dc5bbf4

See more details on using hashes here.

Supported by

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