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: me@myhost.com 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