Required_Doc is the variable set in the form. (see my previous email for details onthe form). Basically I want the following functionality: 1. Enter email address: 2. Select document of file to be emailed. 3. Click Send and Bang, off it goes! Brendon ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: "Brendon Grunewald" <brendon@70south.com> Cc: <zope@zope.org> Sent: Thursday, 31 August, 2000 14:22 Subject: Re: File Attachments with Sendmail
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