I like the sounds of this:
A third parameter may be passed to the process() method to specify a different output location. This value may be one of: ..... a reference to a scalar... to which output/error is appended;
So if I understand this correctly, I can do
And TT will send the output to $email_content instead of to STDOUT. Then I can$template->process($template_file, $vars, $email_content) || die "Template process failed: ", $template->error(), "\n";
Yes?send_html_mail($to, $from, $subject, $email_content);
In reply to Re^2: Template Toolkit: Output one template to Sendmail, another to browser?
by punch_card_don
in thread Template Toolkit: Output one template to Sendmail, another to browser?
by punch_card_don
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |