can anyone tell me who my subject line is not appearing when I use the following code, 
everything else works except that!
   I am on a Win98 system and all $variables are gathered from a form, as I said, all 
the other details appear except the subject.

#!C:\Perl\bin\perl.exe -w
#By Chris Zampese   
use strict;
use CGI ':standard';
use Net::SMTP;
use LWP::Simple;

$server = 'smtp.slingshot.co.nz';
$from= "$name";
$to= "$email$email2";
$subject= 'Ford Butchart Urwin Placing Slip';
$body=$mymessage;


$objMail=Net::SMTP->new($server);
$objMail->mail($from);
$objMail->to($to);
$objMail->data();
$objMail->datasend("MIME-Version: 1.0\n");
$objMail->datasend("Content-type: text/html;");
$objMail->datasend("Subject: $subject\n");
$objMail->datasend("To: $to\n");
$objMail->datasend("From: $from\n");
$objMail->datasend("\n");
$objMail->datasend($body);
$objMail->dataend();
$objMail->quit;

Many thanks,
           Chris

Reply via email to