-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty message body in 1.12 from outlook mail #68
Comments
When we use Apache to replace Nginx, it works fine |
Seems to be same issue as reported at the end of thread here: osTicket/osTicket#3278 I have the same problem for iso 8859-1, even though I have the fixes in the mimeDecode.php and the regex in class.charset.php. |
Still happening in latest v1.14.1 release (using this docker stack). |
so apparently this could be related to the use of nginx (unsupported officially) vs apache |
It is difficult to get solid conclusions from it, but I agree that this is certainly a big difference between the stacks. Note that also the other image using nginx, devinsolutions/osticket, is supposedly having the same problem. (osTicket/osTicket/#3278(comment)) |
Is there any fix for this? |
I believe I have found the issue for this. It all boils down to an issue with how Installing Instead of trying to fix the You simply need to replace: if (function_exists('iconv'))
$text = iconv($from, $to.'//IGNORE', $text);
elseif (function_exists('mb_convert_encoding'))
$text = mb_convert_encoding($text, $to, $from); with the following: if (function_exists('mb_convert_encoding'))
$text = mb_convert_encoding($text, $to, $from);
elseif (function_exists('iconv'))
$text = iconv($from, $to.'//IGNORE', $text); Sadly, this involves changing the source code for osTicket, so the change here will not scale when it comes to upgrading osTicket versions (for when that file gets updated). My company already has to maintain a separate code base for osTicket with our image due to us including some upstream patches, so its not as big of a deal for us. But I wanted to include my temporary fix here in case it can help others. |
... and now I saw this #86 This is probably a better solution than what I just listed above. |
In version 1.12.
Whenever we got an FW or RE HTML email from OUTLOOK mail, the body will shows as (empty).
I have tried every solution related to the (empty) body that I can find on OSTicket forum, and nothing works.
Some other people also have the same issue. Links below:
Email with iso 8859-1
Empty message body on V1.12.2
The text was updated successfully, but these errors were encountered: