Feb
13
Looking for some HTML Code to pull another HTML Page?
February 13th, 2009 posted by
admin
I know things like this are possible in ASP, but I am looking for html code that would pull another html page. What I need this for is we have a database prorgram that allows us to send out html emails like a newsletter. What I do is create an html file and then copy the code into the email and send it out via the database client. I was wondering if there was code that “pulled” the page I edit from my webserver and send it via the database email function, so I dont have to edit the html page, then copy it into an email, and then send it. This would allow me to not have to edit the email, and just send it out after I update the html file. Thanks


injanier says:
February 17th, 2009 at 2:42 am
You could include the edited html page in the email using an iframe, but there are a few drawbacks to this. One is that your included content isn’t pulled in until the message is opened, so someone downloading his email via dialup and viewing it offline has to go online again to see it. Another is that this kind of thing may trigger spam-blockers or security warnings. Also, if you’re sending out the message with a plain-text alternative, the plain-text guy (there’s probably only one of him, these days) misses out.
Other than that, I don’t see what you can do in html, as the html code doesn’t do anything until it’s interpreted by a mail reader or web browser. To actively pull code from one file and insert it into another automatically, you’ll need ASP or other server-side processing.