I'm trying to send an email using a template which calls globals but I'm getting Unknown Tag errors for the globals. Any ideas how to do this?
This is what I'm using at the moment:
my $cfg = Links::Config::load_vars();
my $formatted_message = GT::Template->parse ('template.txt', {%$cfg , %$rec}, { compress => 0, root => $CFG->{admin_root_path} . '/templates/default' } );
EDIT: Fixed it by using Links::SiteHTML::display instead.
This is what I'm using at the moment:
my $cfg = Links::Config::load_vars();
my $formatted_message = GT::Template->parse ('template.txt', {%$cfg , %$rec}, { compress => 0, root => $CFG->{admin_root_path} . '/templates/default' } );
EDIT: Fixed it by using Links::SiteHTML::display instead.