We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7d0851 + 6d51323 commit 53b9307Copy full SHA for 53b9307
1 file changed
lib/net/smtp.rb
@@ -324,12 +324,13 @@ def capable_cram_md5_auth?
324
auth_capable?('CRAM-MD5')
325
end
326
327
+ # Returns whether the server advertises support for the authentication type.
328
+ # You cannot get valid result before opening SMTP session.
329
def auth_capable?(type)
330
return nil unless @capabilities
331
return false unless @capabilities['AUTH']
332
@capabilities['AUTH'].include?(type)
333
- private :auth_capable?
334
335
# Returns supported authentication methods on this server.
336
# You cannot get valid value before opening SMTP session.
0 commit comments