title: How do I format email outputs in Perl?
body: <p>I am very new to writing in Perl.  </p>
  
  <p>I have a checkout pl which sends an email to the buyer with details of their order.  How do I format in Perl to display the order in a "pretty" format such as tables, coloured background images etc like in an html page???<br>
  This is the section of code I would like to format into something more attractive:</p>
  
  <pre><code>##-----Send email confirmation to the customer-----
  open (MAIL,"|$mailprogram");
  print MAIL "To: $b_email\n";
  print MAIL "From: $oursalesemail\n";
  print MAIL "Subject: Order Confirmation\n";
  print MAIL "\n\n";
  print MAIL "Hi $b_first\n";
  print MAIL "\n\n";
  print MAIL "Your order has been received.  A summary of your order appears below.\n";
  print MAIL "\n";
  &amp;printMailFieldsFromForm;
  print MAIL "\n";
  print MAIL "Thank-you for your order.  It will be shipped posthaste.\n\n";
  close MAIL;
  </code></pre>
  
  <p>Cheers
  KD</p>