Perl Net::SMTP How do i have the subject of an email show

A

Almir

I hate this Net::SMTP stuff, everything works fine but for the suject
field. I see no way of having it show in an email when sent. Has
anyone had this problem, can anyone explain why there are no
documentations on smtp or better ones at least. I just need the
subject field to show.

$smtp = Net::SMTP->new('some.your.com');
$smtp->mail ($mailfrom);
#the administrator's email goes here
$smtp->to('(e-mail address removed)');
$smtp->data();
$smtp->datasend("To: mine\@your.com\n");
$smtp->datasend("\n");
$smtp->datasend("Status: ");
$smtp->datasend($tokens{"status"});
$smtp->datasend("\n");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top