[Zope] EMail with uploaded attachments
Dieter Maurer
dieter@handshake.de
Wed, 24 Jan 2001 00:41:07 +0100 (CET)
Klaus Herrmann writes:
> ... Email with file attachment ...
> <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>
Almost perfect.
Use
<dtml-var "attached_file.read()"></dtml-mime>
instead.
Dieter