Page 1 of 1

the "from" field in the received message is wrong

Posted: Mon Feb 27, 2012 11:48 am
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?

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

Posted: Mon Feb 27, 2012 1:51 pm
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?

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

Posted: Mon Feb 27, 2012 2:47 pm
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

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

Posted: Mon Feb 27, 2012 4:20 pm
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.

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

Posted: Mon Feb 27, 2012 4:51 pm
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