in reply to CGI::Carp and Mail::SendEasy do not work

That error message sounds like it's hiding the real error from the Perl script. Can you run the Perl script from the command line, and can you look into the IIS logs for the actual STDERR from the Perl script?

  • Comment on Re: CGI::Carp and Mail::SendEasy do not work

Replies are listed 'Best First'.
Re^2: CGI::Carp and Mail::SendEasy do not work
by kazin_ (Initiate) on Jun 13, 2014 at 13:30 UTC
    I ran the script directly through perl and found that it seem that I may be missing a lib file Mail/SendEasy.pm to associate Mail/SendEasy function in perl. Here's my error log.

    C:\inetpub\wwwroot\site\cgi-bin>perl test.pl Status: 500 Content-type: text/html <h1>Software error:</h1> <pre>Can't locate Mail/SendEasy.pm in @INC (@INC contains: C:/Perl/sit +e/lib C:/P erl/lib .) at crf2.pl line 8. BEGIN failed--compilation aborted at crf2.pl line 8. </pre> <p> For help, please send mail to this site's webmaster, giving this error + message and the time and date of the error. </p> [Thu Jun 12 12:24:56 2014] crf2.pl: Can't locate Mail/SendEasy.pm in @ +INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at crf2.pl line 8. [Thu Jun 12 12:24:56 2014] crf2.pl: BEGIN failed--compilation aborted +at crf2.pl line 8.
    Any ideas what version of perl I should look into or another way to get the Mail/SendEasy.pm file?

      Most likely, you can install it from CPAN at Mail::SendEasy, using the cpan tool that comes with your Perl.

        I have installed the Mail::SendEasy module and it seems to be the fix. Thanks all for the assistance for resolving this issue.
      You need to install the module from the CPAN then. On Unix you'd type 'cpan Mail::SendEasy'. No idea how you'd do that on Windows.
        Exactly the same way on Windows as on Unix.

        CountZero

        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        My blog: Imperial Deltronics
        I found you can extract the Mail folder out of the tar.gz using WinRAR and make sure it is in the perl\lib\ location.

        "No idea how you'd do that on Windows."

        The same way.