yep H::T is very good at this - and you could probably something simple like this, in less than 50 lines of code.
 
Mathew
 
----- Original Message -----
From: J C
To: html-template-users@lists.sourceforge.net
Sent: Friday, March 05, 2004 7:03 AM
Subject: [htmltmpl] Using HTML::Template

I need to be able to do the following with a Perl script and send out emails via HTML or text (if they don't want HTML emails):

I need to read in a file that would contain information like (customer id, first name, last name, address, etc.)

I really don't want the HTML tags in the Perl script. I'll be sending different email messages, so I would prefer separate HTML files/templates--not sure how to do this. I also need to be able to include images.

For example, one email might read:

 

Dear <first name><last name>,

Thank you for blah blah blah.

Another <variable>.

 

Another one might be:

The following information is on file:

<first name><last name>

<address>

Blah blah blah

 

 

Is HTML::Template the best way to do this? Does it still work if I need a text version.

Thank you very much!


Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.