Great answer, but I have one question:

<dtml-boundary name="<dtml-var Required_Doc" type=application/octet-stream
disposition=attachment encode=base64>

does not expand the Required_Doc name, do anyone know why??




----- Original Message -----
From: "Brendon Grunewald" <[EMAIL PROTECTED]>
To: "Chris Withers" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 5:12 AM
Subject: [Zope] Re: File Attachments with Sendmail


> Hi Chris,
>
> This is what I have in total. I know I am being stupid, but this is
> frustrating me to hell. Perhaps I should not be doing this at 1AM.
>
> The form looks like this:
> --------
> <dtml-var standard_html_header>
> <form METHOD="POST" ACTION="send_webdoc">
> Please provide the following information: <br>
> <br>
>         Email address:
> <input TYPE="TEXT" NAME="Email_address" SIZE="20">
> <br>
> Document:
>             <SELECT NAME="Required_Doc">
>             <OPTION>Brochure.doc</OPTION>
>             <OPTION>Pricelist.xls</OPTION>
>             <OPTION>Map.pdf</OPTION>
>             </SELECT>
> <br>
> <p><input TYPE="submit" VALUE="Send Form"> <input TYPE="RESET"
VALUE="Reset
> Form"> </p>
> </form>
> <dtml-var standard_html_footer>
> ---------
>
> send_webdoc looks like this...
> -------
> <html>
> <head>
> <TITLE><!--#var title_or_id--></TITLE>
> <meta http-equiv="Refresh" content="5; url=<!--#var Redirect_URL-->">
> </head>
> <BODY <!--#var BackgroundImage -->>
>
> <dtml-sendmail mailhost="MailHost">
> To: <dtml-var Email_address>
> From: WebForm <[EMAIL PROTECTED]>
> Subject: Web Doc Request
> <dtml-mime type=text/plain encode=7bit>
> Attached is the document you requested: <dtml-var Required_Doc>
> <dtml-boundary name="<dtml-var Required_Doc" type=application/octet-stream
> disposition=attachment encode=base64>
> <dtml-var "Required_Doc.read()">
> </dtml-mime>
> </dtml-sendmail>
>
> <H2>Form Information Confirmation</H2>
> Thank you the document should be email to you immediately.<BR>
> You should be automatically redirected in a few seconds.<BR>
> <p>
> If not
> <a href="<!--#var Redirect_URL-->">Click here</a>.
> </p>
> <dtml-var standard_html_footer>
> ------
>
> Thanks
> Brendon
>
> ------------------
> 70South: the No.1 source for Antarcticles.
> For the latest news and views on Antarctica visit : http://www.70south.com
>
>
> _______________________________________________
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to