the "from" field in the received message is wrong

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
franxiscoflores
Posts: 14
Joined: Mon Feb 27, 2012 11:34 am

the "from" field in the received message is wrong

Post by franxiscoflores »

Script URL: 2.3
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

I'm testing the helpdesk and the messages you receive as a client come with the "from" field as follows: Array [noreply_mail]

how I can fix this?
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: the "from" field in the received message is wrong

Post by Klemen »

Have you been modifying the code? It doesn't make much sense because $hesk_settings['noreply_mail'] is a string, not an array.

In admin panel under settings what is your "No reply email:" set to exactly?
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
franxiscoflores
Posts: 14
Joined: Mon Feb 27, 2012 11:34 am

Re: the "from" field in the received message is wrong

Post by franxiscoflores »

hi, thank you for you reply,

what I try to do was put in front of the email the name of my site, within the "file email_functions.inc.php", in line 55.
example change:

$headers = "From: $hesk_settings [noreply_mail] \ n";
to
$headers = "From: elartedeganar $hesk_settings [noreply_mail] \ n"

but did not work and put everything as it was.

my no-reply email on admins settings are ayuda@elartedeganar.com
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: the "from" field in the received message is wrong

Post by Klemen »

You have an empty space between $hesk_settings and [noreply_mail]

Remove that space and it should work fine.

P.s.: in your case headers can be set to

Code: Select all

$headers = "From: elartedeganar <$hesk_settings[noreply_mail]>\n";
Just make sure you backup files before editing and if something then doesn't work upload original files again.
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
franxiscoflores
Posts: 14
Joined: Mon Feb 27, 2012 11:34 am

Re: the "from" field in the received message is wrong

Post by franxiscoflores »

Klemen very good help, I had not seen that space.

I'm very grateful.

When the next version of this included the "email fetch function" I am sure i will buy the version.

once again ... thanks
Post Reply