title: Exclamation Point in HTML Email
body: <p>I am having a hard time formatting a table in an HTML email.  There seems to always be one cell that doesn't have the background color or weird white spaces.</p>
  
  <p>Here is the code (in php) - </p>
  
  <pre><code> $subject.="&lt;br/&gt;&lt;br/&gt;&lt;table style=\"width:585px;\" &gt;&lt;tr&gt;&lt;td style=\"padding:10px;background-color:#113797;color:white;\"&gt;New &amp; Used Vehicles&lt;/td&gt;&lt;td style=\"padding:10px;background-color:#113797;color:white;\"&gt;Term in Months&lt;/td&gt;&lt;td style=\"padding:10px;background-color:#113797;color:white;\"&gt;APR* As Low As&lt;/td&gt;&lt;td style=\"padding:10px;background-color:#113797;color:white;\"&gt;Monthly Payment Per $1000 Borrowed&lt;/td&gt;&lt;/tr&gt;";       
      $result = mysql_query("SELECT * FROM rates WHERE ID&gt;='32' AND ID &lt;='39'");
          while($row = mysql_fetch_array($result))
      {
                    $subject.= "&lt;tr&gt;&lt;td BGCOLOR=\"#e5f1ff\" style=\"padding:10px;color:black;\"&gt;" . $row['name'] . "&lt;/td&gt;";
                    $subject.= "&lt;td BGCOLOR=\"#e5f1ff\" style=\"padding:10px;\"&gt;" . $row['term'] . "&lt;/td&gt;";
                    $subject.= "&lt;td BGCOLOR=\"#e5f1ff\" style=\"padding:10px;\"&gt;" . $row['apr'] . "&lt;/td&gt;";
                    $subject.= "&lt;td BGCOLOR=\"#e5f1ff\" style=\"padding:10px;\"&gt;" . $row['per_1000'] . "&lt;/td&gt;&lt;/tr&gt;";
      }
  
   $subject.= "&lt;/table&gt;";
  </code></pre>
  
  <p>So I've tried both css background and html and both create something that looks bad.  I've also tried Doctypes.  </p>
  
  <p>This is what my mail code looks like.</p>
  
  <pre><code>    mail( "XXXXXX@yahoo.com", "$title2", "$subject" , "Content-type: text/html;\r\nFrom: auto-alerts@streatoronized.org" );
  </code></pre>
  
  <p>Here is what it renders out like.  See the rogue space?</p>
  
  <p><img src="https://i.stack.imgur.com/JuzmM.png" alt="Table that is messed up!"></p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Check out the low rates.&lt;table style="width:585px;" &gt;&lt;tr&gt;&lt;td style="padding:10px;background-color:#113797;color:white;"&gt;New &amp;amp; Used Vehicles&lt;/td&gt;&lt;td style="padding:10px;background-color:#113797;color:white;"&gt;Term in Months&lt;/td&gt;&lt;td style="padding:10px;background-color:#113797;color:white;"&gt;APR* As Low As&lt;/td&gt;&lt;td style="padding:10px;background-color:#113797;color:white;"&gt;Monthly Payment Per $1000 Borrowed&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;color:black;height:100%;"&gt;2008 and NEWER Vehicle Purchases&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;Up to 72 Months&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;3.24%&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;$17.28&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;color:black;height:100%;"&gt;2008 and NEWER Vehicle!
    Purchases&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;64 - 72 Months&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;4.29%&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;$15.69&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;color:black;height:100%;"&gt;2007 and OLDER Vehicle Purchases&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;Up to 72 Months&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;5.49%&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;$18.20&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;color:black;height:100%;"&gt;2007 and OLDER Vehicle Purchases&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;64 - 72 Months&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;5.99%&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;$16.46&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;color:black;height:100%;"&gt;2011 &amp;amp; 2010 REFINANCES&lt;/td&gt;&lt;td bgcolor=!
   "#e5f1ff" style="padding:10px;height:100%;"&gt;Up to 63 Months&lt;/t!
   d&gt;&lt;td bg
  color="#e5f1ff" style="padding:10px;height:100%;"&gt;4.99%&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;$18.08&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;color:black;height:100%;"&gt;2011 &amp;amp; 2010 REFINANCES&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;64 - 72 Months&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;5.49%&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;$16.34&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;color:black;height:100%;"&gt;2008 - 2009 REFINANCES&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;Up to 60 Months&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;5.99%&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;$19.33&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;color:black;height:100%;"&gt;2007 &amp;amp; older Vehicle REFINANCE&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;Up to 60 Months&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px!
   ;height:100%;"&gt;6.99%&lt;/td&gt;&lt;td bgcolor="#e5f1ff" style="padding:10px;height:100%;"&gt;$19.80&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>