View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
first, i'm using response.redirect to call somefile.fwx. 2nd, when buffer = .f., does it create output file like somefile.html? and where can i access it? is it sitting on request.postdata?
Sent by FoxWeb Support on 07/23/2004 12:55:48 PM:
The property Request.OutputBuffer contains the information that would be sent to the browser.  Of course you can't access this information from within the same FWX file, but you can have a wrapper FWX file as follows:
* You will first need to disable buffering
Response.Buffer = .F.
* Call the fwx file that creates the desired HTML output
Server.Execute SomeFile.fwx
* Read the output and email it out
MySendMail(Request.PostData)  && you will have to provide this function
* If you want you empty the buffer and send different output to the user
Request.PostData = ''
Response.Write('The requested information was sent via email')

FoxWeb Support Team email

Sent by Ramon on 07/23/2004 11:10:44 AM:
can anyone help me how to save the processed .fwx to html file?
the idea is, i want to email that output .html to someone.