Open izelnakri opened 11 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.
This issue in the Mail gem is related; same error message. The fix therein works for me.
Thanks alot!
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.