about summary refs log tree commit
path: root/lib
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2015-09-03 08:28:57 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2015-09-03 08:28:57 +0100
commit959fe156ffd08ce92beedc04433d94ade65f3259 (patch)
treeeb19315e39ecca930838cd6a3b3c638e4fbe687c /lib
parent8a6248ce3eeb8c147a99d73945437c713296579a (diff)
downloadperl-libnet-959fe156ffd08ce92beedc04433d94ade65f3259.tar.gz
SMTP: document passing of SASL instance to auth()
Based on a patch by Jan Viktorin <viktorin@rehivetech.com>. Fixes CPAN
RT#106183.
Diffstat (limited to 'lib')
-rw-r--r--lib/Net/SMTP.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Net/SMTP.pm b/lib/Net/SMTP.pm
index 9cfaa80..6d3e4c2 100644
--- a/lib/Net/SMTP.pm
+++ b/lib/Net/SMTP.pm
@@ -833,7 +833,11 @@ usually use the right arguments already.
 
 =item auth ( USERNAME, PASSWORD )
 
-Attempt SASL authentication. Requires Authen::SASL module.
+=item auth ( SASL )
+
+Attempt SASL authentication. Requires Authen::SASL module. The first form
+constructs a new Authen::SASL object using the given username and password;
+the second form uses the given Authen::SASL object.
 
 =item mail ( ADDRESS [, OPTIONS] )