diff --git a/CHANGES.rst b/CHANGES.rst index c385fe6..949796c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,9 +4,10 @@ Changelog 3.0.3 (unreleased) ------------------ +- Configurable header and footer for email message. + [folix-01] - Subject templating [folix-01] - - Handle the edge cases where the `blocks` attribute is not set. [mamico] diff --git a/pyproject.toml b/pyproject.toml index 9af5bc4..e3f2e35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,6 +84,7 @@ Zope = [ ] python-dateutil = ['dateutil'] 'souper.plone' = ['souper', 'repoze.catalog'] +beautifulsoup4 = ['bs4'] # extra packages ignore-packages = [ # these are packages defined in extras_require diff --git a/setup.py b/setup.py index e097ab4..0e1a9bb 100644 --- a/setup.py +++ b/setup.py @@ -68,6 +68,7 @@ "Products.PortalTransforms", "souper.plone", "click", + "beautifulsoup4", "pyotp", ], extras_require={ diff --git a/src/collective/volto/formsupport/browser/send_mail_template.pt b/src/collective/volto/formsupport/browser/send_mail_template.pt index 0eb472b..1d17eff 100644 --- a/src/collective/volto/formsupport/browser/send_mail_template.pt +++ b/src/collective/volto/formsupport/browser/send_mail_template.pt @@ -3,9 +3,14 @@ parameters python:options.get('parameters', {}); url python:options.get('url', ''); title python:options.get('title', ''); + mail_header python:options.get('mail_header', ''); + mail_footer python:options.get('mail_footer', ''); " i18n:domain="collective.volto.formsupport" > +
+ +