myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2938] trunk/lib/smtp_tls.rb: Added if statement


From: noreply
Subject: [myexperiment-hackers] [2938] trunk/lib/smtp_tls.rb: Added if statement to smtp_tls. rb check_auth_args to allow email to be sent without authentication
Date: Wed, 22 Feb 2012 03:10:43 +0000 (UTC)

Revision
2938
Author
drn05r
Date
2012-02-22 03:10:42 +0000 (Wed, 22 Feb 2012)

Log Message

Added if statement to smtp_tls.rb check_auth_args to allow email to be sent without authentication

Modified Paths

Diff

Modified: trunk/lib/smtp_tls.rb (2937 => 2938)


--- trunk/lib/smtp_tls.rb	2012-02-17 16:03:07 UTC (rev 2937)
+++ trunk/lib/smtp_tls.rb	2012-02-22 03:10:42 UTC (rev 2938)
@@ -8,7 +8,7 @@
 
     # 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
+      check_auth_args user, secret if user or secret # for rails 1.8.7
     else
       check_auth_args user, secret, authtype if user or secret
     end

reply via email to

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