Am still getting an error. Did add the whole path to the add.cgi file. This is the error now.CGI ERROR
==========================================
Error Message : fatal error: Compilation failed in require at F:\users\netbhara\www\vhost\ilaaj\www\htdocs\cgi-bin\links\add.cgi line 161.
Script Location : F:\users\netbhara\www\vhost\ilaaj\www\htdocs\cgi-bin\links\add.cgi
Line 161 is somewhere in this portion of the add.cgi script:
# Then mail it away!
require "$db_lib_path/Mailer.pm";
my $mailer = new Mailer ( { smtp => $db_smtp_server,
sendmail => $db_mail_path,
from => $from,
subject => $subject,
to => $to,
msg => $msg,
log => $db_mailer_log
} ) or return;
$mailer->send or return;
Mailer.pm was in the cgi-bin/links/admin directory. I tried adding mailer.pm to the cgi-bin/links directory with no luck. I am wondering if I am doing something wrong the way I am entering the info about my smtp server in links.cfg. I entered 'smtp.mydomain.com' where mydomain is the name of my domain.
Thanks.
==========================================
Error Message : fatal error: Compilation failed in require at F:\users\netbhara\www\vhost\ilaaj\www\htdocs\cgi-bin\links\add.cgi line 161.
Script Location : F:\users\netbhara\www\vhost\ilaaj\www\htdocs\cgi-bin\links\add.cgi
Line 161 is somewhere in this portion of the add.cgi script:
# Then mail it away!
require "$db_lib_path/Mailer.pm";
my $mailer = new Mailer ( { smtp => $db_smtp_server,
sendmail => $db_mail_path,
from => $from,
subject => $subject,
to => $to,
msg => $msg,
log => $db_mailer_log
} ) or return;
$mailer->send or return;
Mailer.pm was in the cgi-bin/links/admin directory. I tried adding mailer.pm to the cgi-bin/links directory with no luck. I am wondering if I am doing something wrong the way I am entering the info about my smtp server in links.cfg. I entered 'smtp.mydomain.com' where mydomain is the name of my domain.
Thanks.