> >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;");
You forgot a \n above. > >$objMail->datasend("Subject: $subject\n"); So this gets appended to the Content-type: header. HTH, Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain. I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]