MailNode
Mailnode extends the basic Zope MailHost by adding some functionalities, like file attachements. It uses the MailHost configuration (by acquisition).
Current release
MailNode 0.5
Released Aug 28, 2008 — tested with Plone 2.1, Plone 2.5, Plone 3, Plone 2.0
Code cleanup, new features.
More about this release…
Get
MailNode
for
all platforms
(0 kB)
- Product Package
Project Description
## $Id: README.txt 70818 2008-08-28 12:38:00Z kilobug $
Introduction
Mailnode is a simple Zope item that provides a tool that can :
- send mails with file attachments ;
- send HTML mails, and automatically generate the plain-text alternative ;
- check an error mailbox and notify the application if the sending goes wrong.
Synopsis
Call structure in Zope (return a msg-id)
parameters = {
'to': 'receiver@mail.com',
'subject': 'Sujet du mail',
'body': """Le corps du mail
sur plusieurs lignes""",
'attachment': ['/home/user/document.pdf', fd2, 'fichier3.pdf', ...]
}
context.Mailnode.sendMail(parameters)
You can provide a dictionary or use keyword arguments. You can also create a (non-persistent) mail object, fill it by calling method on it, and then send it.
Dependencies
- lynx is required for HTML to text conversion.
Installation
- Untar the product in the Products/ directory.
- Restart your Zope instance.
- Install the product with Add/Remove products or with the quick-installer.
Configuration
The tool has several editable properties. There name should be clear enough.
Errors control
Another feature of Mailnode can check periodically an 'error' POP mailbox, to take care of the sending problems. This will require extra setup.
Concept
- Periodically, an external program calls the 'check' method on the Mailnode Item, in Zope. (cron + wget, or clock server)
- This method connects to the mailserver server and pops the error messages
- For every message, the msg-id is located by text analysis.
- The 'check' method triggers the method defined in the 'error_callback' properties, giving the msg-id as an argument.
