> Hello:
Howdy
>
> I'm attempting to create a CGI script for password requests
> 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
You can do two things:
1) install Authen::SASL
2) Try to use a different type of authentication.
I do this with Mail::Sender
auth => 'LOGIN',
Or auth => 'SASL'
Etc
See the Mail::Sender page for more info.
>
> use strict;
> use CGI qw(:standard);
^^^^^^^^^ If all you are using is the param function just do
use CGI qw(param);
> use CGI::Carp qw(fatalsToBrowser);
> my $smtp = Net::SMTP->new('smtp.sbcglobal.yahoo.com');
>
> $smtp->auth('[EMAIL PROTECTED]','mypasswordhere');
^^^^^^^^^^^^^^^^^^^^^^ This probably has to be the same as
one of either $ENV{USER} or $email like yo uuse below (IE mail() or to() ),
if not you will probably have problems. I'd change $ENV{USER} below to
$smtp->mail('[EMAIL PROTECTED]');
> $smtp->mail($ENV{USER});
> $smtp->to($email);
[snip]
> $smtp->quit;
>
> my $name;
> my $value;
^^^^^^^^^^ Whatare these doing?
>
> print "Location: $redirect\n\n";
>
> exit;
^^^^^ is unnecessary.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]