title: Purpose of head, title, body tag in HTML email
body: <p>I want to send a php email with a clickable hyperlink. The hyperlink is so long that most programs are not able to detect the url from plain-text, therefore, I want to use a HTML-Email. Im using SwiftMailer and I know that I should set a plain-text Email first and then I can add a html-email to it.</p>
  
  <p>At <a href="http://php.net/manual/en/function.mail.php" rel="nofollow">http://php.net/manual/en/function.mail.php</a> I found the following example of how to write a HTML email:</p>
  
  <pre><code>// message
  $message = '
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Birthday Reminders for August&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p&gt;Here are the birthdays upcoming in August!&lt;/p&gt;
  &lt;table&gt;
  &lt;tr&gt;
  &lt;th&gt;Person&lt;/th&gt;&lt;th&gt;Day&lt;/th&gt;&lt;th&gt;Month&lt;/th&gt;&lt;th&gt;Year&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;Joe&lt;/td&gt;&lt;td&gt;3rd&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1970&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;Sally&lt;/td&gt;&lt;td&gt;17th&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1973&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  ';
  </code></pre>
  
  <p>Is it important to set </p>
  
  <pre><code>&lt;html&gt;, &lt;head&gt; and &lt;body&gt;? 
  </code></pre>
  
  <p>Where does </p>
  
  <pre><code>&lt;title&gt;
  </code></pre>
  
  <p>appear at? Should the title be the same as the subject? Or could I just set the message like that:</p>
  
  <pre><code>// message
  $message = '
  &lt;p&gt;Here are the birthdays upcoming in August!&lt;/p&gt;
  &lt;table&gt;
  &lt;tr&gt;
  &lt;th&gt;Person&lt;/th&gt;&lt;th&gt;Day&lt;/th&gt;&lt;th&gt;Month&lt;/th&gt;&lt;th&gt;Year&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;Joe&lt;/td&gt;&lt;td&gt;3rd&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1970&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;Sally&lt;/td&gt;&lt;td&gt;17th&lt;/td&gt;&lt;td&gt;August&lt;/td&gt;&lt;td&gt;1973&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  ';
  </code></pre>