adamwiggins / pony

The official fork is now maintained by benprew in http://github.com/benprew/pony
http://github.com/benprew/pony
233 stars 82 forks source link

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

Open izelnakri opened 10 years ago

izelnakri commented 10 years ago

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.

alexpearce commented 10 years ago

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

izelnakri commented 10 years ago

Thanks alot!