I am a newbie to CGI and I am receiving the following Error:. 

CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are: 
Can't find string terminator "END_OF_MESSAGE" anywhere before EOF at
C:\Inetpub\wwwroot\cgi-bin\form.cgi line 115.

========================================================================
================================================

Here's the code:

sub send_sales {
        my( $name, $hdnLastName, $hdnEmail, $hdnPhone, $hdnCompany ) =
@_;
        
        open MAIL, "| /site/lib/mail -t -i"
                or die "Could not open sendmail: $!";
                
        print MAIL <<END_OF_MESSAGE;            # This is line 115
        To: mail\@duh.com
        Reply-To: $hdnEmail  
        Subject: E-mail Sales Test
        
        Contact information:
        
        $name
        $hdnLastName
        $hdnEmail
        $hdnPhone
        $hdnCompany
        END_OF_MESSAGE
                close MAIL or die "Error closing sendmail: $!";
}

========================================================================
=============================================

I am obviously not seeing the problem here. Is there a special string
terminator needed for  "<<END_OF_MESSAGE;" besides the semi-colon (";")
?

Thanks ahead of time!

Sheri

        

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to