我使用GMail gem来读取和发送邮件功能,但它会引发以下错误:
代码:
require "gmail"
gmail_instance = Gmail.new(email,password)
错误:
SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A
/Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/imap.rb:1454:in `connect'
/Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/imap.rb:1454:in `start_tls_session'
/Users/user/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/net/imap.rb:1047:in `initialize'
/Users/user/.rvm/gems/ruby-2.1.2/gems/gmail-0.4.0/lib/gmail/client/base.rb:26:in `new'
/Users/user/.rvm/gems/ruby-2.1.2/gems/gmail-0.4.0/lib/gmail/client/base.rb:26:in `connect'
/Users/user/.rvm/gems/ruby-2.1.2/gems/gmail-0.4.0/lib/gmail.rb:49:in `new'