I am using Net:

MTP to send mails. I am able to sned mail. In the mail how can I get subject.
$smtp->mail($headers{From});
$smtp->to(@{$headers{To}});
$smtp->recipient(@{$headers{Cc}});
$smtp->data();
$smtp->datasend("To: @{$headers{To}}\n");
$smtp->datasend("Cc: @{$headers{Cc}}\n");
$smtp->datasend("\n");
Here how to set Subject to get subject in the mail. I
MM Guptha