The fetch method is working now! I'm very excited!
Background: Fetch retrieves the HTML output of a template. It's like pouring the output into a variable.
This code:
strContent=objT.fetch("simpletest.tpl")
response.write strContent
... is equivalent to this code:
objT.display("simpletest.tpl")
It took quite a bit of thinking, but not really much code, to get it to work. I couldn't find ANYONE who figured out how to pass session variables to a different SessionID on the same localhost. But I did!
This makes it possible to construct an email message based on a template file. I uploaded the new .ZIP file, but I still need to update the documentation. Updating the documentation will take a bit more time, only because I want to replace the "Send Template Email Sub" extra with equivalent code and template. I hope to finish in a day or two. Whoo-hoo!
Tuesday, February 16, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment