You can easily customize the built-in email notification for Zope, but we found that adding the mailinglogger package makes emails a lot more manageable.
The package adds:
- customizable and dynamic themes for sent messages
- emails sent with custom headers for easy filtering
- flood protection to ensure that the number of messages sent is not excessive.
- authentication support for SMTP servers
- configurable log entry filtering
The build recipe plone.recipe.zope2instance supports a mailbox out of the box; just define the mailinglogger variable in your [instance] and include the mailbox egg:
[instance] recipe = plone.recipe.zope2instance eggs += mailinglogger # Other options go here mailinglogger = <mailing-logger> level warning flood-level 100000 smtp-server localhost from logger@example.com to error-receiver@example.com subject [ServerName Error] [%(hostname)s] %(levelname)s - %(line)s </mailing-logger>
The package was invaluable to us in large clusters, where we configure additional variables for one instance to be included in the topic; we can see in which case the problem arose directly in the topic.
Martijn pieters
source share