ambethia-smtp-tls 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/smtp-tls.rb +6 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/smtp-tls.rb
CHANGED
@@ -5,7 +5,12 @@ Net::SMTP.class_eval do
|
|
5
5
|
private
|
6
6
|
def do_start(helodomain, user, secret, authtype)
|
7
7
|
raise IOError, 'SMTP session already started' if @started
|
8
|
-
|
8
|
+
|
9
|
+
if RUBY_VERSION > "1.8.6"
|
10
|
+
check_auth_args user, secret if user or secret
|
11
|
+
else
|
12
|
+
check_auth_args user, secret, authtype if user or secret
|
13
|
+
end
|
9
14
|
|
10
15
|
sock = timeout(@open_timeout) { TCPSocket.open(@address, @port) }
|
11
16
|
@socket = Net::InternetMessageIO.new(sock)
|