[Zope] Re: attaching files from a folder

Maik Jablonski maik.jablonski@uni-bielefeld.de
Tue, 26 Nov 2002 19:54:41 +0100


jonatan wrote:
> i would like to attach files in a folder named 'attach'
> 
> <dtml-mime type="text/plain; charset=iso-8859-2"
> encode="quoted-printable">
> <dtml-in "attach.objectValues()">
> <dtml-boundary encode="base64" disposition="attachment">
> </dtml-in>
> </dtml-mime>
> 
> 
> zope doesnt permit saving this:
> 
> Error Type: Document Template Parse Error
> Error Value: Unexpected tag, for tag <dtml-boundary encode="base64"
> disposition="attachment">, on line 37 of send_welcome_mail
> 
> if i get <dtml-boundary> out of <dtml-in>, then it works. but how can i
> loop over some sequence to be included within <dtml-boundary>?

You can't do this with the default MIMETools. I've written a package 
called NMIMETools for this purpose.

http://www.zope.org/Members/mjablonski/

I've released no more recent updates because I don't need this package 
for my MailBoxer anymore. But I remember that it worked quite well...;-)

cheers, Maik