How to set To emailaddress fo ForwardTicket

English! place to talk about development, programming and coding
Post Reply
xanzweana
Znuny newbie
Posts: 2
Joined: 09 May 2013, 09:31
Znuny Version: 3.2000

How to set To emailaddress fo ForwardTicket

Post by xanzweana »

I'm using OTRS 3.2 and I want to automatically set the To email address to a value based on one of the dynamicfields. This worked fine in 3.1 with the code below in AgentTicketForward

Code: Select all

if ($Data{DynamicField_Test} eq 'ABC') {
        $Data{To}="abc@example.com";
} elsif ($Data{DynamicField_Test} eq 'XYZ') {
      $Data{To}="xyz@example.com";
}
After upgrading to OTRS 3.2 it stopped working. Not only doesn't it fill in the email address but it also won't send any emails if the To field is filled manually.

Does anyone know what was changed in 3.2 so it stops working?
xanzweana
Znuny newbie
Posts: 2
Joined: 09 May 2013, 09:31
Znuny Version: 3.2000

Re: How to set To emailaddress fo ForwardTicket

Post by xanzweana »

Come on, does nobody know how to pre-fill the `To` field in the foreward Ticket screen? I can fill all the fields (Subject, Body, etc) but not one of the email fields (To, Cc, Bcc) and it worked fine in 3.1 :(
Post Reply