2012-02-01 3 views
0

어떤 이유로 ExceptionNotifier에서 이메일을받지 못했습니다. 나는 여기서 지침을 따랐다 https://stackoverflow.com/a/4818532/766953. ExceptionNotifier에서 이메일을받지 못합니다.

내가이 시험을했다 :

[email protected]:~/proj$ bundle exec rake middleware | grep ExceptionNotifier 
[email protected]:~/proj$ use ExceptionNotifier 

를 그리고 서버 로그에서 볼 : I 앱 전에 내 레일에서 이메일을 보낸 적이

Sent mail to [email protected] (53ms) 
Date: Tue, 31 Jan 2012 18:48:57 -0800 
... 

을, 난 어떤 것도있다 있어야 할 곳에 없는? 또한 내가 지정한 이메일 주소로 마술처럼 보내는 방법은 무엇입니까?

답변

0

NVM 내 환경/development.rb 및 enviroments에/production.rb이를 추가했다

SampleApp::Application.configure do 
    ActionMailer::Base.smtp_settings = { 
    :address => 'smtp.gmail.com', 
    :port => 587, 
    :domain => 'stackoverlord.com', 
    :authentication => :plain, 
    :user_name => '[email protected]', 
    :password => 'mygmailpassword' 
    } 
end 
관련 문제