[Zope] omission in docs for sending mail attachments

Ainis Ainis <ainis@mindless.com>
Thu, 24 Feb 2000 10:29:05 +0200


Hello ,
  Look at DTML reference:
  http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.18.html

  If you do everything according these docs you'll end up getting
emails with attachments named: 1.OCTET-STREAM, 2.OCTET-STREAM...

 To solve this you should use undocumented "name" option with
dtml-boundary tag. For example:

 <dtml-boundary type=application/octet-stream disposition=attachment
 encode=base64 name="blah.gif"><dtml-var blah></dtml-mime>

 Where blah.gif is the name attachment will be called.
  
Best regards,
 Ainis                          mailto:ainis@mindless.com