Here's my problem: I've edited subscribe.cgi slightly to send newly-subscribed users a friendly message telling them about their subscription. For whatever reason though, I can't seem to include variables in the text (which is in a separate file in the templates directory). So I want to say, "Thanks for subscribing to $site_title" If I turn on templates, I can use the global vars, but I need templates off since I'm using the site_html.pl file. I tried using &load_template e.g.
my $msg = &load_template ('subscribe_confirm.html', { site_title => $built_site_title,
site_url => 'www.blah.com',
to_email => $to,
%globals});
It doesn't work though.. the variables just don't get passed. Ideas?
Thanks.
my $msg = &load_template ('subscribe_confirm.html', { site_title => $built_site_title,
site_url => 'www.blah.com',
to_email => $to,
%globals});
It doesn't work though.. the variables just don't get passed. Ideas?
Thanks.