Skip to content

Instantly share code, notes, and snippets.

@avescodes
Created July 30, 2009 17:38
Show Gist options
  • Save avescodes/158800 to your computer and use it in GitHub Desktop.
Save avescodes/158800 to your computer and use it in GitHub Desktop.
>> smtp = Net::SMTP.new('oz.law.harvard.edu', 465)
=> #<Net::SMTP oz.law.harvard.edu:465 started=false>
>> smtp.set_debug_output $stderr
=> #<IO:0x126dbc>
>> smtp.start( 'oz.law.harvard.edu', 'rneufeld', MY_PASS, :login)
Connection opened: oz.law.harvard.edu:465
Timeout::Error: execution expired
from /opt/local/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill'
from /opt/local/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
from /opt/local/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
from /opt/local/lib/ruby/1.8/net/protocol.rb:126:in `readline'
from /opt/local/lib/ruby/1.8/net/smtp.rb:911:in `recv_response'
from /opt/local/lib/ruby/1.8/net/smtp.rb:554:in `do_start'
from /opt/local/lib/ruby/1.8/net/smtp.rb:921:in `critical'
from /opt/local/lib/ruby/1.8/net/smtp.rb:554:in `do_start'
from /opt/local/lib/ruby/1.8/net/smtp.rb:531:in `start'
from (irb):3
>> smtp.enable_ssl
=> #<OpenSSL::SSL::SSLContext:0x23ef3bc>
>> smtp.start( 'oz.law.harvard.edu', 'rneufeld', MY_PASS, :login)
Connection opened: oz.law.harvard.edu:465
TLS connection started
NoMethodError: undefined method `success?' for "200 dummy reply code":String
from /opt/local/lib/ruby/1.8/net/smtp.rb:929:in `check_response'
from /opt/local/lib/ruby/1.8/net/smtp.rb:554:in `do_start'
from /opt/local/lib/ruby/1.8/net/smtp.rb:531:in `start'
from (irb):5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment