hesk pop3 fetching error with certain code in body

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

hesk pop3 fetching error with certain code in body

Post by dr_patso »

Hi,

Hesk Pop3 cron jon fails.. hitting the php file manually in chrome it just spins forever then says web page not available.. I pinpointed the information in the email that was causing hte problem. The user had pasted a bunch of code from an old java website, really just wanting the text/table to go in.

I was searching but I can't find out how to but the error logging on in the PHP.. Anything stand out in the emails html source below that causes the problem?

Code: Select all

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=400
 style='width:300.0pt;mso-cellspacing:0in;mso-yfti-tbllook:1184;mso-padding-alt:
 0in 0in 0in 0in'>
 <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
  <td width=384 valign=top style='width:4.0in;background:#003366;padding:0in 0in 0in 0in'>
  <p class=MsoNormal style='margin-top:.75pt;margin-right:0in;margin-bottom:
  .75pt;margin-left:0in'><b><span style='font-size:12.0pt;font-family:"Arial","sans-serif";
  color:white'>General Attributes<o:p></o:p></span></b></p>
  </td>
  <td width=8 style='width:6.0pt;background:#003366;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
  color:black'><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600"
   o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
   stroked="f">
   <v:stroke joinstyle="miter"/>
   <v:formulas>
    <v:f eqn="if lineDrawn pixelLineWidth 0"/>
    <v:f eqn="sum @0 1 0"/>
    <v:f eqn="sum 0 0 @1"/>
    <v:f eqn="prod @2 1 2"/>
    <v:f eqn="prod @3 21600 pixelWidth"/>
    <v:f eqn="prod @3 21600 pixelHeight"/>
    <v:f eqn="sum @0 0 1"/>
    <v:f eqn="prod @6 1 2"/>
    <v:f eqn="prod @7 21600 pixelWidth"/>
    <v:f eqn="sum @8 21600 0"/>
    <v:f eqn="prod @7 21600 pixelHeight"/>
    <v:f eqn="sum @10 21600 0"/>
   </v:formulas>
   <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
   <o:lock v:ext="edit" aspectratio="t"/>
  </v:shapetype><v:shape id="Picture_x0020_4" o:spid="_x0000_i1025" type="#_x0000_t75"
   alt="https://secure.t'>
   <v:imagedata src="RE%20MgtS%20testcustomer%20Agency%20_files/image001.gif"
    o:href="cid:image001.png@01CF5EE2.3E6BB660"/>
  </v:shape><![endif]--><![if !vml]><img border=0 width=13 height=1
  src="RE%20MgtS%20testcustomer%20Agency%20_files/image001.gif"
  alt="https://secure." v:shapes="Picture_x0020_4"><![endif]><o:p></o:p></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:1'>
  <td colspan=3 style='background:#E7E7E7;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
  color:black'><!--[if gte vml 1]><v:shape id="_x0000_i1026" type="#_x0000_t75"
   alt="https://secure.VK-ww.com/img/s.gif" style='width:.75pt;height:9.75pt'>
   <v:imagedata src="RE%20MgtS%20testcustomer%20Agency%20_files/image002.gif"
    o:href="cid:image002.png@01CF5EE2.3E6BB660"/>
  </v:shape><![endif]--><![if !vml]><img border=0 width=1 height=13
  src="RE%20MgtS%20testcustomer%20Agency%20_files/image002.gif"
  alt="https://secure.VK-ww.com/img/s.gif" v:shapes="_x0000_i1026"><![endif]><o:p></o:p></span></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:2;mso-yfti-lastrow:yes'>
  <td width=8 style='width:6.0pt;background:#E7E7E7;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
  color:black'><!--[if gte vml 1]><v:shape id="_x0000_i1027" type="#_x0000_t75"
   alt="https://secure.VK-ww.com/img/s.gif" style='width:9.75pt;height:.75pt'>
   <v:imagedata src="RE%20MgtS%20testcustomer%20Agency%20_files/image001.gif"
    o:href="cid:image001.png@01CF5EE2.3E6BB660"/>
  </v:shape><![endif]--><![if !vml]><img border=0 width=13 height=1
  src="RE%20MgtS%20testcustomer%20Agency%20_files/image001.gif"
  alt="https://secure.VK-ww.com/img/s.gif" v:shapes="_x0000_i1027"><![endif]><o:p></o:p></span></p>
  </td>
  <td width=384 valign=top style='width:4.0in;background:#E7E7E7;padding:0in 0in 0in 0in'>
  <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=393
   style='width:294.8pt;mso-cellspacing:0in;mso-yfti-tbllook:1184;mso-padding-alt:
   0in 0in 0in 0in'>
   <tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'><!--[if gte vml 1]><v:shape id="_x0000_i1028" type="#_x0000_t75"
     alt="https://secure.VK-ww.com/img/s.gif" style='width:.75pt;height:9.75pt'>
     <v:imagedata src="RE%20MgtS%20testcustomer%20Agency%20_files/image002.gif"
      o:href="cid:image002.png@01CF5EE2.3E6BB660"/>
    </v:shape><![endif]--><![if !vml]><img border=0 width=1 height=13
    src="RE%20MgtS%20testcustomer%20Agency%20_files/image002.gif"
    alt="https://secure.VK-ww.com/img/s.gif" v:shapes="_x0000_i1028"><![endif]><o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.4pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal>&nbsp;</p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:1'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Type:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>box-based<o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:2'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Customer Name:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>testcustomer - testcustomer Research<o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:3'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Serial Number:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>CN8040P3PW<o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:4'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Asset Number:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>01172014AQ006<o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:5'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Creator:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'><a href="mailto:adrian.quiroz@VK.com">adrian.quiroz@VK.com</a><o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:6'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Operating System:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>rhel-5.1<o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:7'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Software Version:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>2.26.1<o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:8'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Approved Software Version:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>box none and Customer 2.26.1<o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:9'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Phone:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'></td>
   </tr>
   <tr style='mso-yfti-irow:10'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Assignment Date:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Fri Feb 28 19:02:05 UTC 2014<o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:11'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Notes:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>testcustomer<o:p></o:p></span></p>
    </td>
   </tr>
   <tr style='mso-yfti-irow:12;mso-yfti-lastrow:yes'>
    <td width=214 style='width:160.2pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Supported Services:<o:p></o:p></span></p>
    </td>
    <td width=179 style='width:134.6pt;padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:9.5pt;font-family:"Arial","sans-serif";
    color:black'>Usage Collection Enabled<o:p></o:p></span></p>
    </td>
   </tr>
  </table>
  </td>
  <td style='background:#E7E7E7;padding:0in 0in 0in 0in'></td>
 </tr>
</table>
dr_patso
Posts: 192
Joined: Tue May 15, 2012 3:23 am

Re: hesk pop3 fetching error with certain code in body

Post by dr_patso »

well i put this at the top and i didn't get errors.. still just "webpage not available". If I remove the code I have in the original post, email goes through just fine.

EDIT: php.ini has errors on and I tried the two methods below to see errors with no success

Code: Select all

<?php
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);

Code: Select all

<?php
error_reporting(E_ALL); 
ini_set( 'display_errors','1');
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: hesk pop3 fetching error with certain code in body

Post by Klemen »

I tested this and the ticket was generated without problems.

Perhaps something on the server is blocking the message (a security-related filter, mod_security or something)? You may want to check respective log files for any related messages.

You can try setting "Debug mode" to ON in HESK settings then running hesk_pop3.php in browser to see the output.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply