title: Send PHP HTML mail with attachments
body: <p>I got a problem: Until today, I sent HTML mails with PHP using a header which contains </p>
  
  <pre><code>Content-type: text/html;
  </code></pre>
  
  <p>Now, I added functionality to add attachments. For this, I had to change this line to</p>
  
  <pre><code>Content-Type: multipart/mixed;
  </code></pre>
  
  <p>Now, with <code>multipart/mixed</code>, the rest of the mail, so the normal text, gets shown just as text/plain. How can I realize that attachments work and the mailtext is still HTML?</p>