2012-05-21 3 views
0

Rails 3.2 앱에서 확인 이메일을 전송하려고합니다. 그것이 내가 다음과 같은 오류가 전송됩니다 그러나 때Gmail 연결 오류 10061 레일 3.2.1

421 Cannot connect to SMTP server, connect error 10061

임, 현재 나의 enviroments에/development.rb에서 이러한 구성 설정을 사용하여

: 구성에서 누락 뭔가

config.action_mailer.raise_delivery_errors = true 
config.action_mailer.perform_deliveries = true 
ActionMailer::Base.smtp_settings = { 
    :address  => 'smtp.gmail.com', 
    :domain   => 'gmail.com', 
    :port   => 587, 
    :user_name  => '[email protected]', 
    :password  => 'password', 
    :authentication => :plain, 
    :enable_starttls_auto => true 
} 

거기를?

답변

0

로컬 호스트에서이 작업을 수행하면 도메인이 잘못되었다고 생각합니다.

:domain =>'your.host.name' 
:이 같은 뭔가를 할 것이다, 일반적으로

:domain => "localhost.localdomain" 

: 그것은이 같은해야한다

관련 문제