Module: SMTP
- Included in:
- Inari::Commands
- Defined in:
- lib/inari/commands/smtp.rb
Instance Method Summary collapse
-
#get_smtp_helo ⇒ Object
SMTP commands.
Instance Method Details
#get_smtp_helo ⇒ Object
SMTP commands
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/inari/commands/smtp.rb', line 5 def get_smtp_helo response = Response.new begin Net::SMTP.start(@host, port=@port, helo=@localhost, user=nil, secret=nil, authtype=nil) add_response('helo', Response.new('Connection accepted')) true rescue add_response('helo', Response.new($!), true) false end end |