Do you have a question? Post it now! No Registration Necessary. Now with pictures!
August 30, 2006, 7:00 pm
rate this thread
to send some email.
My code looks like:
my $msg="hello tst\n";
$smtp = Net::SMTP->new('smtp.x.com');# or die "Unable to open
When I run the code via command line it works. When I run it via a cgi
program from a webpage I get when it dies on the SMTP->new line:
Can't call method "mail" on an undefined value
Everything I"ve searched for says it is because my script cannot
contact the smtp server, but that's not the case because when I run it
via the command line, it works fine.
It looks like it has to be some permisssion thing, either in sendmail