Hi Anup,
You're going to have to use a template global to do that as GT::Template doesn't supported nested tags (tags inside tags) in basic comparisons. Basically, you want to create a global called is_admin, with the content:
my ($from, $domain) = @_;
return $from eq qq|"Webmaster"<webmaster\@$domain>|;
}
Then, in the template, just use:
<%if is_admin($msgs_sent_from, $domain)%>....<%endif%>
You can tweak the text between the qq| and the | if the actual admin e-mail address changes.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
You're going to have to use a template global to do that as GT::Template doesn't supported nested tags (tags inside tags) in basic comparisons. Basically, you want to create a global called is_admin, with the content:
Code:
sub { my ($from, $domain) = @_;
return $from eq qq|"Webmaster"<webmaster\@$domain>|;
}
Then, in the template, just use:
<%if is_admin($msgs_sent_from, $domain)%>....<%endif%>
You can tweak the text between the qq| and the | if the actual admin e-mail address changes.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com