|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
redirect generated html
I am not the ASP programmer on this project so I am simply asking for possiblities.
We are using ASP to generate html documents with data drawn from a database. We need to email some of these pages to our users. We do not want to create separate email-able versions of all of these pages. It would be ideal to create an html email or attach and html document to an email, using the html code the asp code generates on the existing page. Can this be done? My programmers tell me that the second option (write the generated code to a file, attach it to an email, send it, delete the file) would need to use FSO and the this object opens security holes. I would appreciate any information you can give me. TIA |
|
#2
|
|||
|
|||
|
First, how is the email initiated? You can generate HTML files using MS SQL built in tool and have an email job pick up the file.
|
|
#3
|
|||
|
|||
|
I'm not sure about the functionality of ISAPI Filters, but maybe they can help. If ISAPI Filter can catch the HTML data between IIS and Client before it is delivered to the client, it can first send it by e-mail and after that deliver it to the client without any changes as on the following diagram:
Client -> IIS -> ISAPI Filter -> Client || \/ |
|
#4
|
|||
|
|||
|
Sorry, the diagram shows wrong. E-mail should be under ISAPI Filter.
|
|
#5
|
|||
|
|||
|
First of all, I am not sure how the guys are currently generating the email. The html code is already being generated, is it not? That's what's being sent back to the viewers' browsers. I'd like to send that generated html either to the body of an email message or to a file that can then be attached to an email.
In PERL, which I write, this would be easy. I can 'print' to the browser, to the mail program or to a file, all using the same code. btw, thanks for the responses. |
|
#6
|
|||
|
|||
|
If you are using MS SQL Server you can do the same thing with the xp_sendmail function.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > redirect generated html |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|