Hi!

When answering a ticket with a standard response from the agent interface a standard mail is created. In AgentCompose.pm the salutation of this mail is created and <OTRS_CUSTOMER_REALNAME> is substituted with $From. $From looks like "salutation firstname lastname" but I can't find the place where $From is composed.

# --
# prepare salutation
# --
$Data{Salutation} = $QueueObject->GetSalutation();
# prepare customer realname
if ($Data{Salutation} =~ /<OTRS_CUSTOMER_REALNAME>/) {
# get realname
my $From = '';
if ($Ticket{CustomerUserID}) {
$From = $Self->{CustomerUserObject}->CustomerName(UserLogin => $Ticket{CustomerUserID});
}
if (!$From) {
$From = $Data{OrigFrom} || '';
$From =~ s/<.*>|\(.*\)|\"|;|,//g;
$From =~ s/( $)|( $)//g;
}
$Data{Salutation} =~ s/<OTRS_CUSTOMER_REALNAME>/$From/g;
}


Hope you can help me again!

Regards
Christian

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to