Hello: I'm attempting to create a CGI script for password requests that will be sent to my email address using Perl SMTP in a Windows environment on an Apache web server. My SMTP server requires authentication. I've tried using the instructions in the documentation, but it's not working. Here's the message I'm getting:
Software error: Can't locate Authen/SASL.pm in @INC (@INC contains: D:/Perl/lib D:/Perl/site/lib .) at D:/Perl/lib/Net/SMTP.pm line 101. For help, please send mail to the webmaster ([EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ), giving this error message and the time and date of the error. Here's the script: #!d:/perl/bin/perl5.8.0.exe use strict; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); my $email = param("email"); my $name = param("name"); my $redirect = param("redirect"); use Net::SMTP; my $smtp = Net::SMTP->new('smtp.sbcglobal.yahoo.com'); $smtp->auth('[EMAIL PROTECTED]','mypasswordhere'); $smtp->mail($ENV{USER}); $smtp->to($email); $smtp->data(); $smtp->datasend("To: $email\n"); $smtp->datasend("\n"); $smtp->datasend("Password Request\n"); $smtp->dataend(); $smtp->quit; my $name; my $value; print "Location: $redirect\n\n"; exit;
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]