You are not logged in Log in Join
You are here: Home » Members » mjablonski » NMIMETools - a replacement for the MIMETools » dc_view

Log in
Name

Password

 
 


Dublin Core Elements

The Dublin Core metadata element set is a standard for cross-domain information resource description.
Element Description Value
Identifier resource ID http://old.zope.org/Members/mjablonski/NMIMETools
Title resource name NMIMETools - a replacement for the MIMETools
Description resource summary <h1 style="background-color:#ffff00;">Download current releases at <a href="http://mjablonski.zope.de/NMimeTools">http://mjablonski.zope.de/NMimeTools</a></h1> N(ew)MIMETools - a replacement for the MIMETools Problem - How to send all of the files in a folder as attachements using sendmail and mime? You cannot create mails with all files of a folder as attachments with the original MIMETools, because you cannot iterate with the in-tag over the original boundary-tag (internally it's a blockContinuations-tag). Solution - Use the NMIMETools-Product The NMIMETools will give you two new tags: nmime & nboundary. Both have the same arguments as the original MIMETools-counterparts. The difference between the MIMETools and the NMIMETools is that the nboundary-tag is now a "real-open-and-close-block"-tag: it must be opened and closed! This will give you the chance to iterate with the in-tag over the nboundary-block. (For some compatibilty with the MIME-RFC's and the original MIMETools: Nesting nmime-tags in nmime-tags is possible, but for most problems this need not to be used at all.) Example - Sending all files of a folder as attachments Here's an example of how to send all files of a folder:: <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>
Creator resource creator ZopeOrgSite
Date default date 2004-10-03 01:21:57
Format resource format text/html
Type resource type Software Package
Subject resource keywords Patches
Contributors resource collaborators
Language resource language
Publisher resource publisher No publisher
Rights resource copyright


Additional Zope Elements

Element Description Value
CreationDate date resource created 2002-03-25 05:32:28
ModificationDate date resource last modified 2004-10-03 01:21:57
EffectiveDate date resource becomes effective 2004-10-03 01:21:57
ExpirationDate date resource expires None

Backlinks: via Google / Technorati