[Zope] omission in docs for sending mail attachments
Jochen Haeberle
listen@MIDRAS.de
Sun, 27 Feb 2000 15:49:00 +0100
Hi,
thanks for that tip. I was looking for something like that as I
noticed that my Pictures are delivered as "UntitledXXX" (Eudora).
I guess this is MIME spec, not DTML, but I guess this should go to
the documentation...
But using this gives me the same problems as with the sendmail tag
and a propertie holding the name of a Mailhost object - I cannot get
it to work properly as I guess it is expected.
I would like to include for example the id of an Image as the MIME-Name.
I tried:
name="&dtml-id;" (which I would think is the best as this is inside a
<dtml-boundary> tag)
name="ID"
name="<dtml-var ID>"
But they all return just what's inside the quotes. As the last one
usually fails miserably, I guess this is not behaving like it should
(or I expect it to ) work.
Does anyone know how to correctly do it?
Thanks
Jochen
At 10:29 Uhr +0200 24.02.2000, Ainis wrote:
>Hello ,
> Look at DTML reference:
> http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.18.html
>
> If you do everything according these docs you'll end up getting
>emails with attachments named: 1.OCTET-STREAM, 2.OCTET-STREAM...
>
> To solve this you should use undocumented "name" option with
>dtml-boundary tag. For example:
>
> <dtml-boundary type=application/octet-stream disposition=attachment
> encode=base64 name="blah.gif"><dtml-var blah></dtml-mime>
>
> Where blah.gif is the name attachment will be called.