in reply to Re^2: Template Toolkit: Output one template to Sendmail, another to browser?
in thread Template Toolkit: Output one template to Sendmail, another to browser?
Notice the slash before $email_content. It creates a scalar reference that the manual says is required for the behaviour that you want.$template->process($template_file, $vars, \$email_content) || die "Template process failed: ", $template->error(), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Template Toolkit: Output one template to Sendmail, another to browser?
by punch_card_don (Curate) on Aug 27, 2007 at 01:03 UTC |