Methods
start
start
Public Class methods
start(address, port=nil, helo='localhost.localdomain', user=nil, secret=nil, authtype=nil, use_tls=false) {|smtp| ...}
[ + ]
# File lib/more/facets/net/smtp_tls.rb, line 44 def self.start(address, port=nil, helo='localhost.localdomain', user=nil, secret=nil, authtype=nil, use_tls=false, &block) # :yield: smtp new(address, port).start(helo, user, secret, authtype, use_tls, &block) end
Public Instance methods
[ + ]
# File lib/more/facets/net/smtp_tls.rb, line 50 def start(helo='localhost.localdomain', user=nil, secret=nil, authtype=nil, use_tls=false) # :yield: smtp start_method = use_tls ? :do_tls_start : :do_start if block_given? begin send start_method, helo, user, secret, authtype return yield(self) ensure do_finish end else send start_method, helo, user, secret, authtype return self end end