[htmltmpl] Using HT to create HTML Email
Brought to you by:
samtregar
From: Chris F. <cf...@do...> - 2004-01-07 16:17:06
|
Folks, HTML::Template has preformed above and beyond all my expectations when = it comes to serving user content from our site. I currently have a bunch of reporting that happens on a daily basis = which is mailed off to specific people in a HTML report. I'd like to take advantage of some of the HT features (like loops) to = create the emails instead of doing everything in perl and then simply = replacing it. Looking at the docs - would the below work? my $email_message =3D HTML::Template->new( filehandle =3D> *FH,=20 = some_loop =3D> \@someloop, = some_val =3D> $someval, = some_if =3D> 1, = ); = =20 &send_email($email_message); I know I should just try it and see what happens, but I also wanted to = see if anyone had a better suggestion on creating HTML emails. Thanks -Chris |