pony icon indicating copy to clipboard operation
pony copied to clipboard

Outlook servers OpenSSL::SSL::SSLError: SSL_read: wrong version number

Open izelnakri opened this issue 12 years ago • 2 comments

Pony.mail({ :to => 'hidden', :subject => 'Client Test', :bcc => 'hidden', :body => '3 Testing ruby mailing', :via => :smtp, :via_options => { :address => 'smtp.live.com', :port => '587', :enable_starttls_auto => true, :user_name => 'hidden', :password => 'hidden', :authentication => :plain, # :plain, :login, :cram_md5, no auth by default :domain => "localhost.localdomain" # the HELO domain provided by the client to the server } })

gives this error OpenSSL::SSL::SSLError: SSL_read: wrong version number. The following code works for the gmail server.

izelnakri avatar Nov 23 '13 14:11 izelnakri

This issue in the Mail gem is related; same error message. The fix therein works for me.

alexpearce avatar Feb 02 '14 13:02 alexpearce

Thanks alot!

izelnakri avatar Feb 02 '14 18:02 izelnakri