2012-02-01 34 views
0

由於某種原因,我沒有收到來自ExceptionNotifier的任何電子郵件。我按照這裏的說明https://stackoverflow.com/a/4818532/766953未收到來自ExceptionNotifier的電子郵件

我做了這個測試:

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

而且看到這個在服務器日誌:

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

我從來沒有發送的電子郵件從我的Rails應用程序之前,有什麼事情我失蹤?它也是如何神奇地從我指定的任何電子郵件地址發送?

回答

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 
相關問題