I am testing out this module and ran into this error
Undefined subroutine &main::sendmail called at C:\Inetpub\wwwroot\cgi-
bin\
testmail.pl line 10.
From this script:
#!/usr/bin/perl
# require 5.001;
use Mail::Sendmail;
$mail{smtp} = '
pop-server.nc.rr.com';
%mail = (
To => '
HCar...@nc.rr.com',
From => '
HCar...@nc.rr.com',
Message => "This is a very short test message"
);
sendmail(%mail) or die $Mail::Sendmail::error;
print "OK. Log says:\n", $Mail::Sendmail::log;
Now.....there is no call to main and there is no sub main in
Sendmail.pm....any ideas?
Thanks
Hampton