title: Adding html template to swift email body
body: <p>I'm new to swiftmailer and I could successfully send email using it. I need to add a html template to the email body. I'm not sure how to do that? 
  This is the code I used to </p>
  
  <pre><code>  function sendMail($destinationEmail){
  
      // Create the mail transport configuration
  $transport = Swift_MailTransport::newInstance();
  
  $html = "&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Alerting System&lt;/title&gt;
  &lt;style type=\"text/css\"&gt;
  &lt;!--
  table {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  border: thin solid;
  }
  th {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #f0f0f0;
  background-color: #ff0000;
  font-size: 12px;
  }
  td {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #000000;
  font-size: 10px;
  border: thin solid;
  }
  body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10px;
  }
  --&gt;
  &lt;/style&gt;
  &lt;head&gt;
  &lt;body&gt;
  &lt;CENTER&gt;
  &lt;TABLE width=\"50%\"&gt;
  &lt;TBODY&gt;
  &lt;tr&gt;
  &lt;th &gt;test&lt;/th&gt;
  &lt;/tr&gt;
  &lt;/TBODY&gt;
  &lt;/TABLE&gt;
  &lt;br&gt;
  Alerting and Reporting System
  &lt;/CENTER&gt;&lt;/BODY&gt;&lt;/HTML&gt;
  ";
  
  
  // Create the message
  $message = Swift_Message::newInstance();
  $message-&gt;setTo(array(
    $destinationEmail =&gt; "test",
    $destinationEmail =&gt; "test mail"
  ));
  $message-&gt;setSubject("This email is sent using Swift Mailer");
  $message-&gt;setBody("You're our best client ever.");
  $message-&gt;setFrom("test@testcom.com", "Alerts");
  
  $message-&gt;attach($html, "text/html");
  
  
  // Send the email
  $mailer = Swift_Mailer::newInstance($transport);
  $mailer-&gt;send($message);
  }
  </code></pre>
  
  <p>How can I add this $html variable an email template? Any suggestion would be appreciated. </p>