On Sat, 26 Jul 2003, [gb2312] л ¸ù±¾ wrote: > i got a CGI Error message > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. The headers it did return are: > > there are the relative codes in the script > print header, > start_html('mail'), > i don't know why i always get this kind of message. following is the whole > coldes > > use CGI qw/:standard/; > use Mail::Sender; > print header, > start_html('mail'), > h1('Mail'), > $sender = new Mail::Sender > {smtp => 'smtp.china-netcom.com', from => 'gzip-noc'}; > $sender->MailFile({to => '[EMAIL PROTECTED]', > subject => 'Here is the file', > msg => "I'm sending you the list you wanted."}); >
My WAG is that you should have "h1('Mail');" instead of "h1('Mail'),' with the way that it is coded, the print statement is trying to print the result of $sender=new Mail::Sender. **** [EMAIL PROTECTED] <Carl Jolley> **** All opinions are my own and not necessarily those of my employer **** _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs