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

Incoming Email in html view.

edited November 2013 in Mods and Customizations

I have installed OSTICKET (V 1.7.3) & using POP3 for mail fetching. Please let me know how to get Incoming email in html view.
Actually the all invoices email shows html & css codes to staff users.

Looking for soonest reply.

Mani Ranajn


  • I had to do some serious work to get this.. I believe its in 1.8 however, this was my method.

    1. "Create admin option to allow staff to enter email address of those allowed to send HTML"
    2. "Modify fetching parser to save html copy of inbound email if it exists, and if sender is allowed, otherwise, as normal, save text copy"
    3. "Modify outbound parser to detect tags and allow them for certain users"

    This is my version of class.mailfetch.php's getBody function:
    (for some reason new forum doesn't let you paste formatted code, so pastebin it is)

    You can see I have a custom "class.format.php" function added too, stripBadHTML.. ;-)

    Format::stripBadHTML =

    I modified the outbound parser to be more lenient, while at the same time, being more exacting for plain-text messages.. as I liked pre-formatted plain-text, it keeps tabs and whatnot.. useful for orders when you get a tab delimited table and actually want to know what the numbers MEAN.. ;-)
    Format::display =

    For you, I would start with an array of allowed senders, personally, I wouldn't be allowing everyone!

Sign In or Register to comment.