rails email error - Wymagane uwierzytelnienie 530-5.5.1.

próbuję wysłać e-mail z Ruby on Rails, ale otrzymuję to:

SocketError in UsersController#create
getaddrinfo: nodename nor servname provided, or not known

Plik Moje środowiska / development.rb ma:

  config.action_mailer.smtp_settings = { 
    address: "smtp.gmail.com",
    port: 587,
    domain: "my_company.org",
    authentication: "plain",
    enable_starttls_auto: true,
    user_name: "my_username@my_company.org",
    password: "my_pass"
  }

i

  config.action_mailer.delivery_method = :smtp

i

  config.action_mailer.default_url_options = { :host => 'localhost:5000' } 
  # 5000 rather than 3000 as I am using foreman.

questionAnswers(2)

yourAnswerToTheQuestion