[Zope] Re: File Attachments with Sendmail

Chris Withers chrisw@nipltd.com
Thu, 31 Aug 2000 13:22:50 +0100


Brendon Grunewald wrote:
> The form looks like this:
<snip form>

That looks okay...

> <meta http-equiv="Refresh" content="5; url=<!--#var Redirect_URL-->">

could you just use:
<dtml-call "RESPONSE.redirect(Redirect_URL)">
somewhere on the page instead of the meta-refresh nastiness?

> Attached is the document you requested: <dtml-var Required_Doc>

I do hope Required_Doc is a string or a function returning a strign and
not the actual document ;-)

> <dtml-boundary name="<dtml-var Required_Doc" type=application/octet-stream
                       ^^^^^^^^^^^^^^^^^^^^^^^
                       Oops, DTML-inside-DTML error ;-)

...and a major falling down of the sendmail tag, this should be
expressionable, I don't know if there is somethign to solve this yet...

> disposition=attachment encode=base64>

> <dtml-var "Required_Doc.read()">
> </dtml-mime>

what is Required_Doc?

cheers,

Chris