diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2015-01-26 13:42:23 +0000 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2015-01-26 13:42:23 +0000 |
commit | 21148d928e1ba276fb666a1b3d53003ae99bc81a (patch) | |
tree | e187a40786790a6091cb7322208da787a8714254 | |
parent | e5cfb75eea8ddcd5dfbec72b7589b712f157ec60 (diff) | |
download | perl-libnet-21148d928e1ba276fb666a1b3d53003ae99bc81a.tar.gz |
Document the new SendHello argument to Net::SMTP->new()
-rw-r--r-- | Changes | 4 | ||||
-rw-r--r-- | lib/Net/SMTP.pm | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -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 |