myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2873] trunk/lib/smtp_tls.rb: Fix for change in a


From: noreply
Subject: [myexperiment-hackers] [2873] trunk/lib/smtp_tls.rb: Fix for change in api.
Date: Thu, 8 Dec 2011 07:04:23 -0500 (EST)

Revision
2873
Author
dtm
Date
2011-12-08 07:04:23 -0500 (Thu, 08 Dec 2011)

Log Message

Fix for change in api.

Modified Paths

Diff

Modified: trunk/lib/smtp_tls.rb (2872 => 2873)


--- trunk/lib/smtp_tls.rb	2011-12-08 11:34:28 UTC (rev 2872)
+++ trunk/lib/smtp_tls.rb	2011-12-08 12:04:23 UTC (rev 2873)
@@ -5,8 +5,14 @@
   private
   def do_start(helodomain, user, secret, authtype)
     raise IOError, 'SMTP session already started' if @started
-    check_auth_args user, secret, authtype if user or secret
 
+    # http://blog.inspired.no/smtp-error-while-using-gmail-in-rails-271/
+    if RUBY_VERSION > "1.8.6"
+      check_auth_args user, secret # for rails 1.8.7
+    else
+      check_auth_args user, secret, authtype if user or secret
+    end
+
     sock = timeout(@open_timeout) { TCPSocket.open(@address, @port) }
     @socket = Net::InternetMessageIO.new(sock)
     @socket.read_timeout = 60 address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]