Field "Name" has a static name [Customer]

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
peters
Posts: 4
Joined: Tue Oct 26, 2021 9:46 pm

Field "Name" has a static name [Customer]

Post by peters »

Script URL:
Version of script: 3.2.4
Hosting company: self hosted
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Attached screenshot https://easyupload.io/c6jqfa
Write your message below:

I just installed the latest version of Hesk and the field "Name" does not show a real sender's name when an email piping used.
The field has a static name "[Customer]" for all tickets. I have attached a screenshot as a file.
Is it possible to see a sender's name from an email instead of "[Customer]"?
Thanks .
Last edited by peters on Wed Oct 27, 2021 4:42 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Filed "Name" has a static name [Customer]

Post by Klemen »

Hesk will try to get the name from the "Reply-To:" (primary) or "From:" (secondary) header, then convert to UTF-8; If unable, it will be set to "[Customer]".

My guess is your "Reply-To" headers contain email only, no name?

If you want to ignore reply to and just look in the From header, replace all instances of

Code: Select all

$results['reply-to']
with

Code: Select all

$results['from']
in /inc/pipe_functions.inc.php file. Use a powerful editor such as Notepad++ to edit the file.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
peters
Posts: 4
Joined: Tue Oct 26, 2021 9:46 pm

Re: Field "Name" has a static name [Customer]

Post by peters »

All Reply-To headers emails i tested with had the assigned name.
I modified the /inc/pipe_functions.inc.php file as you suggested and it worked! Now i am able to see the Names.
Thanks.
Post Reply