title: Send email with a template using php
body: <p>How can I send an email using php then add a template design in the email? I'm using this:</p>
  
  <pre><code>$to = "someone@example.com";  
  $subject = "Test mail";  
  $message = "Hello! This is a simple email message.";  
  $from = "someonelse@example.com";  
  $headers = "From: $from";  
  mail($to,$subject,$message,$headers);  
  echo "Mail Sent.";  
  </code></pre>
  
  <p>And it works fine! The problem is just how to add a template.</p>