Perl Module - Mail::Sendmail

From: Andy Ford (andy.ford@telindus.co.uk)
Date: Mon Feb 16 2004 - 02:20:47 EST


Hi All

I am trying to use the folowing script to send myself a mail ...

----- start --------
#!/usr/bin/perl -w

use Mail::Sendmail;

        %mail = (
                To => 'emai_address',
                From => 'email_address',
                Cc => 'email_address,
                Subject => 'Test email',
                Message => "Testing"
        );
          
        sendmail(%mail) or die $Mail::Sendmail::error;
--------- end -------------

... but I get the following message....

connect to localhost failed (Connection refused) no (more)
retries!connect to localhost failed (Connection refused)

I have no ideas where I can look. Even google has failed me this time

Andy ideas

Thanks

Andy

-- 
perl -e 'print qq^;@) [###]^^qq^z\.MY{eLQ9^'
in:control developer, Telindus, RG27 9HY
DDI: +44 1256 709211, GSM: +44 7810 636652
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:04 EDT