Hi Folks!

I have another problem:
I wrote a nice web interface for email feedback etc., but i want to add an
option for attaching files to the emails. how can i do this? i can't get it to
work.
i have this:

<form action="send_email" method=post enctype="multipart/form-data">
..
<input type=file size=18 maxlength=3000000
 name="attached_file">
</form>

and in send_email:

<dtml-sendmail mailhost=fox>
To: ...
From: ...
Subject: ...
<dtml-mime type=text/plain encode=7bit>

plain text....

<dtml-boundary type=application/octet-stream
disposition=attachment encode=base64>
<dtml-var attached_file></dtml-mime>

</dtml-sendmail>

but the only result is that the attachments contains:
<ZPublisher.HTTPRequest.FileUpload instance at 88b4df0>

what am i doing wrong?

thanks in advance!

bye,
        Klaus

-- 
Klaus Herrmann <[EMAIL PROTECTED]>
Goelz & Schwarz GmbH, Munich
www.goelz.com
phone:+49 - (0)89 - 544 67 0 22
fax: +49 - (0)89 - 544 67 0 10


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to