CoverYourASP --> Snippets |
| "Snippets" are mini-articles - they allow me to very quickly add answers to your frequently asked questions, and add brief explanations for topics that you've searched for without success. So, everytime you send an email or perform a search, chances are a new snippet will be the result!2 Oct: Q&A;: How do I attach an ASP page to an email?Mike:I have a form email an attachment which is a page pulled from our server. This is fine but when I want to email the dynamic content it just won't go - I have spent days on trying to find a work around. For example attachfile "e:/endowments/to_excel.asp", "newFile.xls" This works fine but I really want to use this: attachfile "e:/endowments/to_excel.asp?ID=37", "newfile.xls" Do you think there is a work around? Me: attachfile just picks up the file from the hard disc and sends it - it doesn't "run" the file. To a file system a ?ID=37 just looks like you're trying to open a file using a ? wildcard (which won't work either) You need to use a "screen scraper" to request the page from your server and save it to disk, then attach that. For an example of a scraper, read my article about grabbing ASPWire content or buy one of the many components that will do it for you like IP*Works!. |
|