#2654 Can't view html email with javascript on it.

open
nobody
5
2009-07-16
2009-07-16
João Lyanderson
No

Hi all,

Today I recived an email with some javascript code included(from some newsletters) and I SM only show me the subject. I know, JS on an email is not a good idea, but I was wondering if theres some workaround to strip out or invalidate JS codes.

Discussion

1 2 3 > >> (Page 1 of 3)
  • When you say "only show me the subject" does it not show any other part of the body? This sounds like a PHP error occurred, and the page stopped executing. You should see:

    http://squirrelmail.org/docs/admin/admin-11.html#ss11.1

    This will help you diagnose the potential error.

     
  • You can also use the Message Details plugin to view the full email source and send it to us for diagnosis... unless you can't see the "message details" link. If so, dig the email out of your mail spool manually or use another mail client to get it.

     
    • status: open --> pending
     
  • header

     
    Attachments
  • source

     
    Attachments
  • Thanks for the very fast reply.

    So, tried jangliss sugestion, and no, PHP doesn't produce any error at all.
    Just one thing to add here: I ripped off all JS code on this email, sent, and SM shows me everything just fine.

     
    • status: pending --> open
     
    • status: open --> pending
     
  • Your comments are entirely useless. Are you SURE there are no PHP errors? Maybe your PHP error settings are obfuscating them. Either way, what exactly do you expect us to do when you can't actually explain the problem with sufficient detail and won't provide an example so we can reproduce it? I suggest you file a help request on our mailing list instead, providing ALL of the system details needed so we can reproduce the issue ourselves.

     
  • I'm sorry if my comments are useless, but I guess theres no way to explain this in a more simple way: SM doesn't show any e-mail with javascript on it. There are NO PHP errors, I checked everything and I'm 100% sure. I sent the email source. So what kind of detail you want? I can send you the same email so you can take a look.

     
1 2 3 > >> (Page 1 of 3)