http://qs321.pair.com?node_id=656874


in reply to Taking information from a text file and inserting it into an html template

Hi Bill. All you really need to do is gather up the data from your file into some data structure. If you just need to put the lines as is ( or slightly modified ) an array is probably perfect. If you need to break these lines up into more granular pieces you will probably want an array of hashes with the hashes containing the individual data elements.

Then you can use MIME::Lite::TT::HTML to send your E-mail using a Template Toolkit template. I wrote a short tutorial on how to use this module which can be found here

Once you have the data in some sort of structure, you just pass that data as TmplParams and then can access it in the template for position, loops, etc.

Hope this helps!

Frank Wiles <frank@revsys.com>
www.revsys.com