Method: Net::SMTP#capable_auth_types

Defined in:
lib/net/smtp.rb

#capable_auth_typesObject

Returns supported authentication methods on this server. You cannot get valid value before opening SMTP session.



337
338
339
340
341
# File 'lib/net/smtp.rb', line 337

def capable_auth_types
  return [] unless @capabilities
  return [] unless @capabilities['AUTH']
  @capabilities['AUTH']
end