HTML emails breaking web interface
This is a new install of the VMware template.
When i click on a text email everything displays correctly however when i click on some HTML emails, all of the text in the interface shrinks to an unreadable size. If you click back on a text email then the interface corrects itself again.
This is what it looks like when you click a HTML email generated from one software package we have:
The next image is from PRTG network morning software, as you can see the text is smaller but still visible, the search box and menu has also broken.
This is what it looks like for any other email, seems to be some content in the email causing the interface to shrink?
Any ideas?
Comments (8)
-
reporter -
repo owner I assume the css or other formatting interferes with the gui. Can you send me a non-sensitive and problematic email to me? See my address in piler -V
-
reporter I have sent the emails to you, please let me know if you do not receive them.
Thanks
-
repo owner OK, I'm checking them...
-
repo owner - changed status to resolved
Edit model/search/message.php, and replace the following (in line 565)
$chunk = preg_replace("/\<style\>([\w\W]+)\<\/style\>/i", "", $chunk);
with this
$chunk = preg_replace("/\<style[\w\W]{0,}\>([\w\W]+)\<\/style\>/i", "", $chunk);
-
reporter Hello,
Thank you for the modification, i replaced the line you suggested & the interface is working correctly now however a lot of emails don't display their correct HTML formatting in the preview window. Not just the problem emails but other emails as well sent from outlook etc.
-
repo owner Well, yes. Unfortunately I can either leave any css definitions as they are, or completely disable them. I've chosen the latter one. I'm not sure if it's possible to discard only some specific css entries (easily), and determining which css entry breaks the gui. Another possible option can be to display the textual part (and not the html).
-
reporter Ok i understand, thank you for looking into this. At least the interface works correctly now :)
- Log in to comment
I have tested with both Google Chrome & IE with the same result.