Changing Reply-to email address

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
haribo
Posts: 1
Joined: Fri Apr 19, 2013 10:09 pm

Changing Reply-to email address

Post by haribo »

Script URL:
Version of script: 2.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: reply-to, header, reply-to header

Write your message below:

Hi there,

I would like to change the email header info in submit_ticket.php to be the email address of the person who submits the ticket for the email sent to staff. I have tried changing:

$headers.= "Reply-to: $hesk_settings[noreply_mail]\n";

to variations of:

$headers.= "Reply-to: $_POST['email']\n";

or:

$headers.= "Reply-to: $tmpvar['email']\n";

No luck so far, does anyone know if this can be done?

Many thanks in advance, James
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Changing Reply-to email address

Post by Klemen »

This should work:

Code: Select all

$headers.= "Reply-to: $tmpvar[email]\n";
(note no single quotes around email)

Make sure you are editing the correct headers - they are set twice in the file, the second ones are the ones sent to staff.

Also, some servers don't allow modifying "From: " or "Reply-to:" headers for security (anti-spam) reasons.
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
Post Reply