Net :: SMTPAuthenticationError (530 5.7.0 The STARTTLS command must be executed first

I am running Mac OSX Mountain Lion

ruby: ruby ​​1.9.2p290 (2011-07-09 version 32553) [x86_64-darwin12.1.0]

Rails: Rails 3.2.3

I have my config / enviroment / development.rb:

MyApp :: Application.configure do

config.cache_classes = false config.whiny_nils = true config.consider_all_requests_local = true config.action_controller.perform_caching = false config.active_support.deprecation = :log config.action_dispatch.best_standards_support = :builtin config.action_mailer.raise_delivery_errors = true config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { address: "smtp.gmail.com", port: 587, domain: "gmail.com", authentication: :login, enable_starttls_auto: true, openssl_verify_mode: OpenSSL::SSL::VERIFY_NONE, user_name: "username", password: "password" } config.action_mailer.default_url_options = {host: 'localhost:3000'} end 

This worked 2 weeks ago and the code was not changed. However, since then I have risen to a mountain lion. We also added an extra hook for Git called staging, but that shouldn't have been implemented. After meeting this problem this morning, I added the line that you see in the code that looks like this:

  openssl_verify_mode: OpenSSL::SSL::VERIFY_NONE 

which I saw in another post about this issue. This did not work.

The mail action program works fine on testers, and server production, so we are now convinced that this is a problem with upgrading to a lion.

Thank you for your time.

+4
source share

Source: https://habr.com/ru/post/1434937/


All Articles