[Zope] adding a file upload to an email

Matt Carey matt at studiolift.com
Thu Jan 29 14:14:02 EST 2004


hi

i have a simple form, where the results get sent out as an email. the 
form is within a dtml file, and the form method calls another dtml file 
which has the sendmail part. it all works fine.

but i need to add a file upload to the form, and have it send the 
attached file with the rest of the form results via email. so i have in 
my form:

<input size="20" value="" type="file" name="upload"  />

and then in my dtml file:
 
<dtml-try>
<dtml-sendmail mailhost="MailHost">
To: xxx
From: xxx
Subject: test form

<dtml-var upload>

</dtml-sendmail>
 
but the email i get back gives me this:
<ZPublisher.HTTPRequest.FileUpload instance at 0x8c09bcc>


any ideas?

thanks
matt



More information about the Zope mailing list