adding title of the issue to the email header

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
chiphh
Posts: 7
Joined: Fri Apr 04, 2008 1:09 pm

adding title of the issue to the email header

Post by chiphh »

Script URL:
Version of script: latest
Hosting company: ukfast.net
URL of phpinfo.php: http://www.aim-mktg.co.uk/php.php
URL of session_test.php: ???
What terms did you try when SEARCHING for a solution: email subject email headers

Write your message below:
I would like to add the title of the issue to the email header - this will help my customers in identifying which ticket has been responded to.

Sorry I could not find the session_test.php file

BTW this is a very good piece of work and I look forward to your reply

Thanks
HAPPY USER OF HESK
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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
chiphh
Posts: 7
Joined: Fri Apr 04, 2008 1:09 pm

putting subject of issue in the reply email from admin

Post by chiphh »

Thanks for you reply.

It was fine for the email the admin receives but did not solve the problem of how to put the subject into the email from admin to THE CUSTOMER receives - this is far more critical for the customer as they do not have an admin page where they can look up their different tickets.

thinking that I could achieve this I tried modifying the code on the admin_reply_ticket.php but it did not work so can you help me solve this one please
here is what I tried:
@mail($orig_email,'[HESK] '.$subject,$message,$headers);
HAPPY USER OF HESK
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Try

Code: Select all

@mail($orig_email,'RE: '.$orig_subject,$message,$headers);
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
chiphh
Posts: 7
Joined: Fri Apr 04, 2008 1:09 pm

adding title of the issue to the email header

Post by chiphh »

Sorry no beer yet for some reason it stubbornly insists on returning "your support ticket received" despite my changing the code as suggested.

Could you pls advise what I can do to get this working as it does work when it advises admin but not the customer.

Thanks a lot,
HAPPY USER OF HESK
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I think you have confused few things. Two files need editing:

1. submit_ticket.php
This one has TWO lines that start with @mail , you need to edit both using $subject variable to show the subject, for example change both lines to:

Code: Select all

@mail($email,'[HESK] '.$subject,$message,$headers);
2. admin_reply_ticket.php
Has only one @mail line, subject is stored in $orig_subject variable. Change the line as suggested above:

Code: Select all

@mail($orig_email,'RE: '.$orig_subject,$message,$headers);
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
chiphh
Posts: 7
Joined: Fri Apr 04, 2008 1:09 pm

works fine now need message details in the email body

Post by chiphh »

Thanks a lot beer is on me it works fine now.

However I have just had another customer that has told me that they would prefer to track things in their email - fine by me but can you pls tell me what I do to add the actual message content into the body of the email.

Thanks a lot
HAPPY USER OF HESK
chiphh
Posts: 7
Joined: Fri Apr 04, 2008 1:09 pm

re beer

Post by chiphh »

Sorry I thought you were joking - can you fix my last request and then I will make a donation as I just realised there was link under the beer comment.

Thanks again,
HAPPY USER OF HESK
Post Reply