I saw Dieter's bogus answer to attaching multiple files in mime method, but have no clue how that answers anything? http://groups.yahoo.com/group/zope/message/82157 Anyhow, has anybody got any working example of how to send all of the files in a folder as attachments using sendmail and mime? Thanks in advance, Chris
hello chris, "Chris A. Bruce" <cbruce@sleeter.com> wrote:
I saw Dieter's bogus answer to attaching multiple files in mime method, but have no clue how that answers anything? http://groups.yahoo.com/group/zope/message/82157 Anyhow, has anybody got any working example of how to send all of the files in a folder as attachments using sendmail and mime?
It seems to be that no one has a solution for this problem. I need a 'multiple-mime-attachment' for my MailBoxer-Product too, so I am going to develop a solution in the next weeks. Any help is welcome...:-) Greetings, maik. -- Maik Jablonski Zentrum fuer Lehrerbildung Universitaet Bielefeld Germany
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: yourMailAccount@yourMailServer.yourMailDomain From: zope@yourZopeServer.yourZopeDomain 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/
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: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Maik Jablonski Sent: Monday, March 25, 2002 5:52 AM To: Chris A. Bruce Cc: zope@zope.org 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: yourMailAccount@yourMailServer.yourMailDomain From: zope@yourZopeServer.yourZopeDomain 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 - 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 )
hello trevor, On Mon, 25 Mar 2002 13:01:25 -0500 "Trevor Toenjes" <zope@toenjes.com> wrote:
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>
Your code won't work with the standard-MIMETools... dtml-boundary is not a block-tag. That's why I "invented" NMIMETools. Furthermore I found no way to implement a fully compatible version to MIMETools (so I could have made a patch out of it). So I just created a new product with a (n)boundary-block-tag... Not the best way, but I (and maybe others) need something that works...;-) 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/
participants (3)
-
Chris A. Bruce -
Maik Jablonski -
Trevor Toenjes