Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

FIX for Craotian language sending/receiving emails

go to include/class.email.php

line 135
 function send($to,$subject,$message,$attachment=null) {
global $cfg;
//Problemi kod naslova +problems with subject
$subject=\"=?WINDOWS-1250?B?\".base64_encode($subject).\"?=\";
// subject window-1250 fix

line 171 under //do some cleanup
--
'Content-Type' => 'text/html; charset=\"windows-1250\"',
'Content-Transfer-Encoding' => 'base64'

line 180 this is added fix frome tome cvitan this part just changed charset
$options=array('head_encoding' => 'quoted-printable',
'text_encoding' => 'quoted-printable',
'html_encoding' => 'base64',
'html_charset' => 'windows-1250',
'text_charset' => 'windows-1250');

for body

line 239
'Content-Type' => 'text/html; charset=\"WINDOWS-1250\"'


line 241-248
$mime = new Mail_mime();
$mime->setTXTBody($body);
$options=array('head_encoding' => 'quoted-printable',
'text_encoding' => 'quoted-printable',
'html_encoding' => 'base64',
'html_charset' => 'windows-1250',
'text_charset' => 'windows-1250');

this is the end of modification
you should be eable to recive and send email with čćžšđ letters in your subject body and name text fields. Tested and working.

Comments

Sign In or Register to comment.