Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Use globals in email

Quote Reply
Use globals in email
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.

Last edited by:

afinlr: May 3, 2004, 3:39 PM
Subject Author Views Date
Thread Use globals in email afinlr 2412 May 3, 2004, 3:13 PM
Thread Re: [afinlr] Use globals in email
nt6 2336 May 6, 2004, 9:18 AM
Post Re: [nt6] Use globals in email
afinlr 2339 May 6, 2004, 9:31 AM
Thread Re: [afinlr] Use globals in email
Andy 2331 May 6, 2004, 10:09 AM
Post Re: [Andy] Use globals in email
afinlr 2324 May 6, 2004, 10:10 AM