Pernahkah Anda ingin membuat teks pesan jawaban menjadi lebih tebal di email jawaban pada Sistem osTicket Anda sehingga klien Anda akan menjadi lebih mudah membedakan atau membaca teks jawaban yang sebenarnya dibandingkan teks lainnya yang terdapat di email tersebut? Karena standar template email di osTicket menggunakan teks yang sederhana, maka kita harus mengganti tipe pesan yang yang berada di dalam file class.email.php dari mode text menjadi mode html. Modifikasi ini sekaligus menjawab pertanyaan yang sama pada Forum Diskusi osTicket. Baiklah, berikut ini solusi yang sudah berhasil saya buat.
-
Buka file \include\class.msgtpl.php Anda, dan cari kode ini:
144
',ticket_reply_body='.db_input(Format::striptags($var['ticket_reply_body'])).
lalu timpa dengan kode berikut:
144
',ticket_reply_body='.db_input($var['ticket_reply_body']).
Cari lagi kode ini:
209
',ticket_reply_subj='.db_input(Format::striptags($info['ticket_reply_subj'])).
lalu timpa dengan kode berikut:
209
',ticket_reply_subj='.db_input($info['ticket_reply_subj']).
-
Buka file \include\class.email.php Anda, dan cari kode ini:
160
$body = stripslashes(preg_replace("/(\r\n|\r)/s", "\n", trim($message)));
lalu timpa dengan kode berikut:
160 161 162
//$body = stripslashes(preg_replace("/(\r\n|\r)/s", "\n", trim($message))); // Text mode $body = stripslashes(preg_replace("/(\r\n|\r)/s", " ", trim($message))); // HTML mode
Cari lagi kode yang ini:
203
$mime->setTXTBody($body);
lalu timpa dengan kode berikut:
203 204
//$mime->setTXTBody($body); // switch to HTML mode below $mime->setHTMLBody($body);
-
Pergi ke Admin Panel -> Emails -> Templates -> lalu klik pada record template Anda (default: osTicket Default Template), kemudian pada petunjuk Message Body di bawah bagian Ticket Response/Reply, ganti kode ini:
%response
menjadi:
<b>%response</b>
Harap diingat juga, bahwa karena kita telah berpindah dari mode text ke mode html, maka setiap URL di template email juga harus dimodifikasi seperlunya supaya menjadi link yang dapat langsung diklik. Contoh: masih pada tempat yang sama di atas, ganti kode berikut, dari:
%url/view.php?e=%email&t=%ticket
menjadi seperti ini:
<a href="%url/view.php?e=%email&t=%ticket">%url/view.php?e=%email&t=%ticket</a>
kemudian klik tombol Save Changes untuk menyimpan perubahan setting.
Sekarang, setiap kali staf Anda membalas ke sebuah tiket, maka pesan jawaban di dalam email yang diterima oleh klien Anda akan menjadi terlihat lebih tebal (bold) daripada sisa pesan yang ada.
Dengan menggunakan teknik yang sama di atas tadi, maka Anda pun dapat menerapkan mode html untuk gaya template email lainnya pada Admin Panel Anda.
Selamat mencoba!

I followed this tutorial for my RC5 and my output e-mail looks like this
Person,A request for support has been created and assigned ticket #757947. A representative will follow-up with you as soon as possible.You can view this ticket’s progress online here: http:/websiteaddress.com/support/view.php?e=emailaddress@email.com&t=757947.If you wish to send additional comments or information regarding this issue, please don’t open a new ticket. Simply login using the link above and update the ticket.websiteaddress.com.com admnimistrator
I changed the personal info above, but it strips everything down to one line and is not bold.
here are my changes
/support/include/msgtpl.php
/support/include/class.email.php
There are 2 entries of step 2 part 1. I replaced both instances. 1 instance is in the “send” function and another in “sendmail” function. In my settings i have SMTP as outgoing.
instance 1
instance 2
step 2 part 2
E-mail template is
Thanks for the up and coming support, and these tutorials are gold.
looks like I cant paste in the e-mail template without this site changing it, but basically I followed your steps for it
Tyler,
I think you have missed the step that you called with instance 2 above.
Yours is:
whereas it should be:
In the other words, you missed the <br /> tag which has function to break the line to the next line.
Masino, the instance 2 suggestion you had was already implemented in my code, I guess it was just a bad typo on my part on the post. The Results are still the same as my original post. Im just going to revert back and wait for others feedback because I know im doing it right.
Tyler,
I have re-tested that modification above and there is nothing left. Also, the response email that received by client also worked properly; the response message text was bold as well.
Hi Tyler,
You should also edit “ticket_autoresp_subj” and “ticket_autoresp_body” lines as below to be able to put HTML codes in the new ticket alert template which is sent to the clients:
Hi,
Implemented everything in OSticket 1.6 Stable. Works fine.
However the line break (ENTER) done by the staff does not go into the resulting email.
Any suggestions?
Can someone please update the main codes and let us know the final version?
Thanks