[Zope] Email files via a form thru Zope
Curtis Maloney
curtis@umd.com.au
Mon, 28 Aug 2000 17:08:06 +1100
On Mon, 28 Aug 2000, Michelle wrote:
> Hi,
>
> I was wondering if anyone can help me.
>
> I would like to have people send files through a form so I have created a
> form:
>
*snip*
>
> Now (theoretically) you are supposed to be able to attach a file
> (either a .doc or a .xls file and it magically gets emailed to me. I
> get an email but the file does not attach.
Not quite. To attach a file, you must make your message a "multi part MIME"
message. This is actually not all that difficult to do, and you can find the
details in the DTML documentation.
>
> Unfortunatley I am not the most techo-minded person around and I have
> probably missed the most simplest bit but I just cant make it work!!!
> This whole Python and external methods and all that sort of stuff has
> been confusing me like you wouldnt believe! Soooooo I was hoping that
> there would be some wonderful person out there to show me the light! :)
>
One think you might want, tho, is to get the MIME patch, that allows
expressions for the various fields in the dtml-sendmail tags. This will be
helpful for things like user-supplied file names.
Check out these pages:
http://www.zope.org/Members/rossl/emailattach
http://www.zope.org/Members/jephte/MIMETag
> Look forward to hearing from you!
>
> Michelle
>
Have a better one,
Curtis Maloney