The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Weird HTML encoding problem with PHP mail after upgrade (easyapache)

Discussion in 'EasyApache' started by fcastro86, Mar 20, 2012.

  1. fcastro86

    fcastro86 Member

    Joined:
    Mar 20, 2012
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi all, this is my situation, a few weeks ago I updated with easy apache to the newer version of php 5.3.10 however since then I'm having troubles with MIME emails send by php.

    For example they look like this:

    Code:
    > --b1_2bb39feb7a737666e635a405ab038f87
    > Content-Type: multipart/alternative;
    > boundary="b2_2bb39feb7a737666e635a405ab038f87"
    >
    > --b2_2bb39feb7a737666e635a405ab038f87
    > Content-Type: text/plain; charset = "UTF-8"
    > Content-Transfer-Encoding: 8bit
    >
    >
    > Has recibido una consulta desde luis en relación al producto:
    > Nombre de producto: Kawasaki ZX10R 2006
    > SKU del producto: 0002061
    >
    > Consulta: cunto por la moto?
    > URL: urlremoved
    >
    > Mail mailto: email removed
    >
    >
    > --b2_2bb39feb7a737666e635a405ab038f87
    > Content-Type: text/html; charset = "UTF-8"
    > Content-Transfer-Encoding: 8bit
    >
    >
    > <html>
    > <head>
    > <title>Consulta de cliente</title>
    > <style type="text/css">
    > <!--
    > .Stil1 {
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-size: 12px;
    > }
    > .Stil2 {font-family: Verdana, Arial, Helvetica, sans-serif}
    > -->
    > </style>
    > </head>
    > <body>
    >
    > <table width="100%" align="center" border="0" cellspacing="0" cellpadding="10" >
    > <tr valign="top" bgcolor="#CCCCCC">
    > <td align="left" class="Stil2" colspan="2">
    > <b>Motopartes<b>
    > </td>
    > </tr>
    > <tr>
    > <td colspan="2">
    > luis ha solicitado más información en removedurl &nbsp;(Product-SKU:&nbsp;0002061)
    > </td>
    > </tr>
    > <tr>
    > <td width="auto">
    > <img src="cid:product_image" alt="product_image" border="0" /> </td>
    > <td>
    >
    > </td>
    > </tr>
    > <tr><td>&nbsp;</td></tr>
    > <tr align="left" bgcolor="#CCCCCC">
    > <td class="Stil2" colspan="2">
    > <b>Consulta</b>
    > </td>
    > </tr>
    > <tr><td>&nbsp;</td></tr>
    > <tr>
    > <td colspan="2" style="border:1px solid #000000;">
    > cunto por la moto? </td>
    > </tr>
    > <tr>
    > <td colspan="2">
    > luis, <a href="mailto:removedemail ">removed email</a>
    > </td>
    > </tr>
    > </table>
    >
    > </body>
    > </html>
    >
    >
    >
    > --b2_2bb39feb7a737666e635a405ab038f87--
    > --b1_2bb39feb7a737666e635a405ab038f87
    > Content-Type: image/jpeg; name="resized/Kawasaki_ZX10R_2_4ed5805fbaf22_90x90.jpg"
    > Content-Transfer-Encoding: base64
    > Content-ID: <product_image>
    > Content-Disposition: inline; filename="resized/Kawasaki_ZX10R_2_4ed5805fbaf22_90x90.jpg"
    >
    > /9j/4AAQSkZJRgABAQAAAQABAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg
    > SlBFRyB2NjIpLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB
    ....
    ....
    ....
    > ZTqKdOcJVZVKlKEqzg/fdRNRk5yveWqSvK7utXvf/9k=
    >
    >
    > --b1_2bb39feb7a737666e635a405ab038f87--
    
    Another example is with headers of some mails:

    Code:
    =?UTF-8?Q?[A_precio_de_robado]_New_Comment_On:_Angry_birds_tama=C3=B1o_re?= =?UTF-8?Q?al?=
    I have google for a while, but seems quite rare, I hope somebody know what to do. Thaanks in advance.
     
    #1 fcastro86, Mar 20, 2012
    Last edited by a moderator: Mar 20, 2012
Loading...

Share This Page