in reply to Failed Mail::Mailer on AIX 5.3

It seems that Mail::Mailer is not installed on your system. At least, perl could not find a file Mail/Mailer.pm in the listed directories. Did you install Mail::Mailer, and if so, how?

Replies are listed 'Best First'.
Re^2: Failed Mail::Mailer on AIX 5.3
by kafkaf55 (Acolyte) on Mar 16, 2010 at 14:36 UTC
    No, I did not install it. Perl came as part of the installation of AIX. If this is the mailer for AIX, how do I go about installling the package?
    Ken

      See A Guide to Installing Modules and the README of the distribution. Alternatively, ask your system administrator to either install the module for you or to tell you what mechanism for sending mails to use.

        I decided on Mail::Sendmail. I used CPAN to install and it looks fine. I created a small test program as follows:

        #!/usr/bin/perl #
        use strict;
        use warnings;
        use Mail::Sendmail;

        %mail = ( To => 'burtonk@chesterfield.gov',
        From => 'burtonk@chesterfield.gov',
        Subject => 'Test email from Perl',
        Message => "This is a test message from PERL !!"
        );

        sendmail(%mail) or die $Mail::Sendmail::error;

        print "OK. Log says:\n", $Mail::Sendmail::log;

        exit ;

        When I go to run it:

        Global symbol "%mail" requires explicit package name at ./emailit.pl line 14.
        Global symbol "%mail" requires explicit package name at ./emailit.pl line 20.

        What am I missing, the syntax looks fine?
        Ken