title: No recipient addresses found in header - Sendmail
body: <p>I am using the below code.</p>
  
  <p>I have printed my <code>$to</code> variable and it is fine. I am still getting error</p>
  
  <blockquote>
    <p>No recipient addresses found in header</p>
  </blockquote>
  
  <pre><code>my $sendmail = "/usr/sbin/sendmail -t";
  my $reply_to = "Reply-to: swa.udda\@lkl.com";;
  my $subject  = $lSubjectLine;
  my $content  = $lMessage;
  my $to       = "To: ".$lEmailAdd;
  my $file     = $l_finalFile;
  my $from     = "From: test.a\@lkl.com";
  
  open( SENDMAIL, "|$sendmail" ) or die "Cannot open $sendmail: $!";
  print SENDMAIL &lt;&lt;EOM;
  $reply_to
  $subject
  $from
  $to
  $content
  EOM
  close(SENDMAIL);
  </code></pre>