title: How to style email body in php
body: <p>I want to style mail body. I have tried the below methods to style mail body. But all of them didn't work</p>
  
  <p>1) Used external style sheet 
   <strong>style.css</strong></p>
  
  <pre><code>td{padding:10px;}   
  </code></pre>
  
  <p><strong>mail.php</strong></p>
  
  <pre><code>&lt;link rel="stylesheet" href="style.css"&gt;&lt;/link&gt;&lt;table&gt;&lt;td&gt;....&lt;/td&gt;&lt;/table&gt;
  </code></pre>
  
  <p>2) Defined Internal Style Sheet:</p>
  
  <p><strong>mail.php</strong></p>
  
  <pre><code> &lt;style type="text/css"&gt;
  td{
      padding-bottom:8px;
  }
  
  &lt;/style&gt;
  &lt;table&gt;&lt;td&gt;....&lt;/td&gt;&lt;/table&gt;
  </code></pre>
  
  <p>I know, Inline style works by doing <code>&lt;td style='padding-bottom:8px'&gt;</code>, But i have got many tables, doing the inline style is not a good idea, Is there any work around so that no need to define style for each element</p>