Mark Hendricks wrote at 2003-1-14 11:14 -0600:
 > ...
 > I am trying to attach images and other binary data to an email. The  
 > text attachment works fine.
 > ...
 > <dtml-sendmail smtphost="my.smtp.host">
 > To: [EMAIL PROTECTED]
 > From: <dtml-var email>
 > Subject: test3-w-image
 > 
This empty line is wrong (an empty line separates the mail
headers from the mail body).
But the "dtml-mime" must be part of the header!
 > <dtml-comment><dtml-var subject></dtml-comment>
 > <dtml-comment><dtml-var body></dtml-comment>
 > <dtml-mime type=text/plain encode=7bit>
 > <dtml-var some_text>
 > 
 > <dtml-boundary type="application/octet-stream" disposition="attachment"  
 > filename="some_jpeg.getId()" encode="base64">
use "filename_expr" rather than "filename"
 > <dtml-var expr="some_jpeg.read()">
 > <dtml-var some_jpeg>
Are you sure, you want both of them?


Dieter

_______________________________________________
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 )

Reply via email to