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