|Perl Monk, Perl Meditation|
Re^6: Perl CGI and Template Toolkitby Perobl (Beadle)
|on Jan 04, 2012 at 15:47 UTC||Need Help??|
Thank you so much Eliya! I tried your code and it works great. You can pass a HoH to MIME::Lite::TT::HTML, I stand corrected :).
I thought I understood hash usage with TT2, but apparently I'm missing something. Could you possibly help me a bit more?
The data I wish to share in my email is queried from a DB:
I then generate my HoH using:
I then prepare my email:
Notice that I'm passing the hash reference "\%item_hoh" to TT2 via TmplParams whereas you passed $HoH. I need to generate my HoH on the fly. While your code works for a hard coded HoH, mine doesn't and I don't understand why.
Again, in TT2, I'm attempting to display the results this way:
None of the data is displayed in my emails when I use this code ... and I don't understand why. Thank you so much, I really appreciate your help, and I would be happy to buy you lunch because I'd really like to include this data in a table format in my emails :D.