[Zope] need help on mail attachment using dtml

Kam Nejad knejad@codeit.com
Tue, 17 Apr 2001 10:50:18 -0700


I am using the following code to send an attachment in this case a gif
image:

<dtml-sendmail mailhost=kammail>
To: knejad@codeit.com
From: someone@someplace.com
Subject: <dtml-var subject>
<dtml-mime type="text/plain" encode=7bit>
<dtml-var body>

elvis is cool!

<dtml-boundary type="application/octet-stream"
filename="REQUEST['elvis'].getId() encode=base64><dtml-var
"elvis"></dtml-mime>
</dtml-sendmail>

Mail with attachment was sent!


when i recieve the email the file type is not shown. it should be a gif.
I can save
and view the file but it is saved as .html file. Also the filename is
not rendered.
Would appreciate some help on this.