about summary refs log tree commit
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2015-01-26 13:42:23 +0000
committerSteve Hay <steve.m.hay@googlemail.com>2015-01-26 13:42:23 +0000
commit21148d928e1ba276fb666a1b3d53003ae99bc81a (patch)
treee187a40786790a6091cb7322208da787a8714254
parente5cfb75eea8ddcd5dfbec72b7589b712f157ec60 (diff)
downloadperl-libnet-21148d928e1ba276fb666a1b3d53003ae99bc81a.tar.gz
Document the new SendHello argument to Net::SMTP->new()
-rw-r--r--Changes4
-rw-r--r--lib/Net/SMTP.pm4
2 files changed, 7 insertions, 1 deletions
diff --git a/Changes b/Changes
index 0139870..1bf112f 100644
--- a/Changes
+++ b/Changes
@@ -2,7 +2,9 @@ Revision history for Perl distribution libnet
 
 3.06 Development
 
-    - TODO
+    - Added optional SendHello argument to Net::SMTP->new() to allow preventing
+      the EHLO/HELO command from being automatically sent by the constructor.
+      [PR#13, Danil Onishchenko]
 
 3.05 2015-01-12
 
diff --git a/lib/Net/SMTP.pm b/lib/Net/SMTP.pm
index 024d75b..561281f 100644
--- a/lib/Net/SMTP.pm
+++ b/lib/Net/SMTP.pm
@@ -714,6 +714,10 @@ B<Hello> - SMTP requires that you identify yourself. This option
 specifies a string to pass as your mail domain. If not given localhost.localdomain
 will be used.
 
+B<SendHello> - If false then the EHLO (or HELO) command that is normally sent
+when constructing the object will not be sent. In that case the command will
+have to be sent manually by calling C<hello()> instead.
+
 B<Host> - SMTP host to connect to. It may be a single scalar (hostname[:port]),
 as defined for the C<PeerAddr> option in L<IO::Socket::INET>, or a reference to
 an array with hosts to try in turn. The L</host> method will return the value