title: Sending html and css mails to gmail with Swift Mailer
body: <p>I have some basic html and some css but for some reason gmail puts <strong>3D</strong> infornt the 'text/css'</p>
  
  <p>Code sample </p>
  
  <pre><code>$message = "
              &lt;style type='text/css'&gt;
                #main {border:1px solid red;}
              &lt;/style&gt;
  
                &lt;div id='main'&gt;some text&lt;/div&gt;
  ";
  </code></pre>
  
  <p>But when I view the original send to the gmail</p>
  
  <pre><code>&lt;style type=3D'text/css'&gt;
  </code></pre>
  
  <p>and maybe thats why the mail is not styled. I am using the swift mailer </p>
  
  <p>// also in html</p>
  
  <pre><code>&lt;div id=3D'main'&gt;
  </code></pre>
  
  <p>// swift mailer </p>
  
  <pre><code>    $type = $message-&gt;getHeaders()-&gt;get('Content-Type');
      $type-&gt;setValue('text/html');
      $type-&gt;setParameter('charset', 'utf-8');
  </code></pre>