Page 1 of 1
adding title of the issue to the email header
Posted: Fri Apr 04, 2008 2:39 pm
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
Posted: Sat Apr 05, 2008 8:04 am
by Klemen
putting subject of issue in the reply email from admin
Posted: Sat Apr 05, 2008 11:23 am
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);
Posted: Sun Apr 06, 2008 9:07 am
by Klemen
Try
Code: Select all
@mail($orig_email,'RE: '.$orig_subject,$message,$headers);
adding title of the issue to the email header
Posted: Sun Apr 06, 2008 11:42 am
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,
Posted: Sun Apr 06, 2008 6:48 pm
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);
works fine now need message details in the email body
Posted: Tue Apr 08, 2008 9:58 pm
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
re beer
Posted: Wed Apr 09, 2008 3:01 pm
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,