https://github.com/zopefoundation/products.mailhost
zope.sendmail integration for Zope.
https://github.com/zopefoundation/products.mailhost
mail maintained python zope
Last synced: 5 months ago
JSON representation
zope.sendmail integration for Zope.
- Host: GitHub
- URL: https://github.com/zopefoundation/products.mailhost
- Owner: zopefoundation
- License: other
- Created: 2013-02-26T19:41:16.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-06-07T06:38:49.000Z (12 months ago)
- Last Synced: 2025-01-08T02:06:28.532Z (5 months ago)
- Topics: mail, maintained, python, zope
- Language: Python
- Homepage:
- Size: 1.02 MB
- Stars: 2
- Watchers: 70
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
.. image:: https://github.com/zopefoundation/Products.MailHost/actions/workflows/tests.yml/badge.svg
:target: https://github.com/zopefoundation/Products.MailHost/actions/workflows/tests.yml.. image:: https://coveralls.io/repos/github/zopefoundation/Products.MailHost/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/Products.MailHost?branch=master.. image:: https://img.shields.io/pypi/v/Products.MailHost.svg
:target: https://pypi.org/project/Products.MailHost/
:alt: Latest stable release on PyPI.. image:: https://img.shields.io/pypi/pyversions/Products.MailHost.svg
:target: https://pypi.org/project/Products.MailHost/
:alt: Stable release supported Python versionsProducts.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.