I just tested dtml-boundary in the loop below and it fails. Is this feature or bug? Should dtml-boundary be altered to be a block-tag?
-Trevor -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Trevor Toenjes Sent: Monday, March 25, 2002 1:01 PM To: Maik Jablonski; Chris A. Bruce Cc: [EMAIL PROTECTED] Subject: RE: [Zope] Attaching multiple file to mime I dont see why nMIME is necessary? I consider this a bug, unless someone can point out otherwise. It should work the way below or Zope should be modified to work this way or add an </dtml-boundary> <dtml-in "objectValues('File')"> <dtml-boundary type_expr="content_type" disposition="attachment" encode="base64" filename_expr="_['sequence-item'].getId()"> <dtml-var sequence-item> </dtml-in> </dtml-mime> </dtml-sendmail> -Trevor > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Maik > Jablonski > Sent: Monday, March 25, 2002 5:52 AM > To: Chris A. Bruce > Cc: [EMAIL PROTECTED] > Subject: [Zope] Attaching multiple file to mime > > > hi to all, > > some weeks ago Chris Bruce and me asked: > > > has anybody got any working example of how to send all of the files > > in a folder as attachments using sendmail and mime? > > This will not work with the original MIMETools. So I created a > new Product: > N(ew)MIMETools! > > http://www.zope.org/Members/mjablonski/NMIMETools > > With the NMIME-Product installed you can send all files of a folder for > example like this: > > <dtml-sendmail smtphost="127.0.0.1"> > To: [EMAIL PROTECTED] > From: [EMAIL PROTECTED] > Subject: NMIME-Example with multiple attachments > <dtml-nmime type="text/plain" encode="7bit"> > > Just a demonstration how to send multiple attachments with > the NMIMETOOLS. > > <dtml-in "objectValues('File')"><dtml-nboundary type_expr="content_type" > disposition="attachment" encode="base64" > filename_expr="_['sequence-item'].getId()"><dtml-var > sequence-item></dtml-nboundary></dtml-in></dtml-nmime> > </dtml-sendmail> > > Please note: the NMIMETools have the same arguments as the > original MIMETools. > The only difference: <dtml-nboundary>-tag is now a real-block-tag (with an > open & close-statement) which allows iterating! > > Maybe someone will find this helpful for his work. Bug reports > and comments > are welcome... > > greetings, maik. > > -- > maik jablonski visit www.zope.org, > universitaet bielefeld LET'S GET ZOPED!!!! > zentrum fuer lehrerbildung > didaktik des sachunterrichts > postfach 10 01 31 > 33501 bielefeld > germany > tel: + 49 (0) 521 106 4234 > > http://www.zfl.uni-bielefeld.de/ > http://www.sachunterricht-online.de/ > > > > > _______________________________________________ > Zope maillist - [EMAIL PROTECTED] > 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 ) _______________________________________________ Zope maillist - [EMAIL PROTECTED] 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 ) _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )