|
NAMEAuthen::Simple::SMTP - Simple SMTP authentication SYNOPSIS use Authen::Simple::SMTP;
my $smtp = Authen::Simple::FTP->new(
host => 'smtp.company.com'
);
if ( $smtp->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::SMTP
PerlSetVar AuthenSimpleSMTP_host "smtp.company.com"
<Location /protected>
PerlAuthenHandler Authen::Simple::SMTP
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
DESCRIPTIONAuthenticate against a SMTP service. METHODS
SEE ALSOAuthen::Simple. Net::SMTP. AUTHORChristian Hansen "ch@ngmedia.com" COPYRIGHTThis program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
|