[Zope] attaching files from a folder
Dylan Reinhardt
zope@dylanreinhardt.com
Tue, 26 Nov 2002 11:12:21 -0800
Last I checked, you can't have any space between <dtml-boundary> and
</dtml-mime>. That </dtml-in> counts as a space.
As a practical matter, I'm pretty sure you need one mime tag per
attachment, though they can be nested. Be careful about allowing any extra
space to creep in to your DTML... it will be inserted into the MIME output,
which is probably not what you want.
HTH,
Dylan
At 10:50 AM 11/26/2002, you wrote:
>hi!
>
>
>i would like to attach files in a folder named 'attach'
>
>here is a very basic dtml:
>
><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>?
>
>
>one more question: i would like "8bit" for content-transfer encoding.
>isnt there a way to use that?
>
>thanks,
>
>
>jonatan
>
>
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )