title: How can i send html content in my email,using perl
body: <p>I am new to Perl.</p>
  
  <p>Iam using following perl code for sending mail.</p>
  
  <p>And its working fine.</p>
  
  <p>But how can i include html content in it?</p>
  
  <pre><code>use strict;
  use warnings;
  
  use Email::Sender::Simple qw(sendmail);
  use Email::Sender::Transport::SMTP ();
  use Email::Simple ();
  use Email::Simple::Creator ();
  
  my $smtpserver = 'xxxx.xx.x.x.';
  my $smtpport = 25;
  my $smtpuser   = 'test@test.com';
  my $smtppassword = 'xxxxx';
  
  my $transport = Email::Sender::Transport::SMTP-&gt;new({
    host =&gt; $smtpserver,
    port =&gt; $smtpport,
    sasl_username =&gt; $smtpuser,
    sasl_password =&gt; $smtppassword,
  });
  
  my $email = Email::Simple-&gt;create(
    header =&gt; [
      To      =&gt; 'xxx@xxxx.com',
      From    =&gt; 'test@test.com',
      Subject =&gt; 'Hi!'
  
    ],
    body =&gt; "&lt;table&gt;&lt;tr&gt;&lt;td&gt;try&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;",
  );
  
  sendmail($email, { transport =&gt; $transport });
  print "Success \n";
  1;
  </code></pre>