PHP ile HTML e-posta gönderme - garip render

0 Cevap php

Ben basit bir tablo var:

<table cellpadding="0" cellspacing="0" style="width:600px">
  <tr>
    <td style="width:100px; padding:5px; border:1px solid #444">E-mail</td>
    <td style="width:500px; padding:5px; border:1px solid #444">ex@ex.com</td>
  </tr>
  <tr>
    <td style="width:100px; padding:5px; border:1px solid #444">Message</td>
    <td style="width:500px; padding:5px; border:1px solid #444">sometext</td>
  </tr>
</table>

When I test it, it looks fine: alt text

When I send it through PHP mail() function, it looks like this: alt text

Why is that margin there?

Sadece durumda, benim mail () başlıkları şunlardır:

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

0 Cevap