title: Styling HTML email for Gmail
body: <p>I'm generating a html email that uses an internal stylesheet, i.e.</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;style type="text/css"&gt;
      h2.foo {color: red}    
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
   &lt;h2 class="foo"&gt;Email content here&lt;/foo&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When viewed in Gmail it seems all the styles in the internal stylesheet are ignored. It seems Gmail ignores all styles other than inline rules, e.g.</p>
  
  <pre><code> &lt;h2 style="color: red"&gt;Email content here&lt;/foo&gt;
  </code></pre>
  
  <p>Is this my only option for styling HTML emails when viewed with Gmail?</p>