Emails address contain html encoded characters

Moderator: crythias

Locked
Pr0xiMUS
Znuny newbie
Posts: 4
Joined: 04 Dec 2014, 16:08
Znuny Version: OTRS 5.0

Emails address contain html encoded characters

Post by Pr0xiMUS »

Hello all!

My email configuration is (mostly) working. Auto response emails are working ok, the problem is with some (not all) response emails that are generated by notification event system. They have malformed email TO address field with encoded html entities.

Actual (wrong) ARTICLE.A_TO value:
Name Surname <name.surname@domain.tld>

Should be:
Name Surname <name.surname@domain.tld>

This only happens with email generated by notification event when recipient is someone from Recipient group like Customer or Agent (Owner). Notifications that are sent to named group (like admins or support group 1) have to address formed correctly (without html encoded fields like >)

Image
OTRS 5.0.15 on CentOS 7 with database MariaDB 5.5
Pr0xiMUS
Znuny newbie
Posts: 4
Joined: 04 Dec 2014, 16:08
Znuny Version: OTRS 5.0

Re: Emails address contain html encoded characters

Post by Pr0xiMUS »

Solved it!

In file \otrs\Kernel\System\Ticket\Event\NotificationEvent.pm, on line 646, add next code:

Code: Select all

			# do not convert email addresses to HTML!
			next KEY if ($Key eq 'Email');
OTRS version 4.0.2
OTRS 5.0.15 on CentOS 7 with database MariaDB 5.5
peterVII
Znuny newbie
Posts: 3
Joined: 07 Feb 2017, 12:22
Znuny Version: OTRS4

Re: Emails address contain html encoded characters

Post by peterVII »

You made my day. Thanks.
Locked