Password Authentication
From: Art Mahanna (amahanna_at_sbcglobal.net)
Date: 10/30/03
- Next message: Andrew Gaffney: "Re: Password Authentication"
- Previous message: Dan Muey: "RE: Reading a directory and Renaming the file"
- Next in thread: Andrew Gaffney: "Re: Password Authentication"
- Reply: Andrew Gaffney: "Re: Password Authentication"
- Maybe reply: Dan Muey: "RE: Password Authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <beginners@perl.org> Date: Thu, 30 Oct 2003 14:18:31 -0600
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 (amahanna@sbcglobal.net
<mailto:amahanna@sbcglobal.net> ), 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('amahanna@sbcglobal.net','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;
- Next message: Andrew Gaffney: "Re: Password Authentication"
- Previous message: Dan Muey: "RE: Reading a directory and Renaming the file"
- Next in thread: Andrew Gaffney: "Re: Password Authentication"
- Reply: Andrew Gaffney: "Re: Password Authentication"
- Maybe reply: Dan Muey: "RE: Password Authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|