When trying to use this function, clicking on the View As HTML option of an attachment received by a user, we see the following error in a new browser tab:

HTML Conversion Error


This feature was working in our 5.0.4 installation but has ceased to work since upgrading to 5.0.16. Any help would be greatly appreciated.