Class: Net::SMTP

Inherits:
Object
  • Object
show all
Defined in:
lib/tuktuk/tuktuk.rb

Overview

overwrite Net::SMTP#quit since the connection might have been closed before we got a chance to say goodbye. swallow the error in that case.

Instance Method Summary collapse

Instance Method Details

#quitObject



26
27
28
29
30
# File 'lib/tuktuk/tuktuk.rb', line 26

def quit
  getok('QUIT')
rescue EOFError => e
  # nil
end