[rt-users] Set Subject in if/then clause

Gerard FENELON gerard at eve-team.com
Wed Feb 1 08:08:20 EST 2012


Hi Giuseppe

what is your definition of "This doesn't seem to work" ?
what is the (bad) behaviour that you are seeing ?
Does an email get sent or not ?
What is its subject line and content ?
Anything in the logs ?

Gerard

On 2012-02-01 12:03, Giuseppe Sollazzo wrote:
> Hi,
> I'm trying to set up a different subject for different queues in the
> same template (autoreply). This doesn't seem to work:
>
> {
> if ($Ticket->QueueObj->Name eq 'Work Queue') {
> Subject: Helpdesk Job Logged: {$Ticket->Subject}
> "Output this";
> }
> elsif ($Ticket->QueueObj->Name eq 'Task Queue') {
> Subject: Support Job Logged: {$Ticket->Subject}
> "Output that";
> }
> else {
> "Output other";
> }
> }
>
> Is there a way to get this work?
>
> Thanks,
> Giuseppe




More information about the rt-users mailing list