[Zope] Conditional dtml-boundary in dtml-sendmail

Chris Withers chris at simplistix.co.uk
Fri Apr 11 06:06:17 EDT 2008


Tom Von Lahndorff wrote:
> How is dtml more "error-prone" than python? I'd imagine that all depends on
> who's authoring it.

In this particular example, python's email package has a very OO 
approach to generating emails.

The DTML approach relies on you remembering to put in the right 
statements for the right constituent email parts in the right places.
It's easy to make mistakes and generate emails that won't work with most 
clients.

It's also harder to generate emails with the correct headers (Date, 
Message-ID, etc) than it should be, so you're more likely to pump out 
email that mtas consider to be spam.

The DTML approach also makes attaching files a living hell...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list