Re: [htmltmpl] Using HT to create HTML Email
Brought to you by:
samtregar
From: Chris F. <cf...@do...> - 2004-01-07 18:09:22
|
> That would certainly work, though I would say this instead: > > &send_email( $email_message->output ); > > Since you're sending the e-mail to a controlled (& homogeneous) list of > HTML-receivable e-mail clients, you don't have to worry about a > corresponding text version. Thanks Jason, that is awesome... I never thought of passing "xxx->output" right to the mail sub.. That is perfect as now I can just do my standard my $template = new HTML::Template(filename => "filename"); Assign everything when and where I want to and output it to the send_mail sub - its perfection!! (thought I would have to do it via a FH before as the content wasn't being served up via http). Thanks for MIME::Lite suggestion, I know I'm going to have to use it someday when I need to send attachments - currently I use Mail::Sendmail and just bounce it off our SMTP server in the network - works great!. Thanks Again -Chris |