ruby on rails - Exception Notification -


i trying make exception notifier. installed gem , put code in production.rb:

config.action_mailer.delivery_method = :sendmail   # defaults to:    config.action_mailer.sendmail_settings = {      :location => '/usr/sbin/sendmail',      :arguments => '-i -t'    }    config.action_mailer.perform_deliveries = true    config.action_mailer.raise_delivery_errors = true    config.middleware.use exceptionnotifier,       :email_prefix => "error 500",       :sender_address => %{"notifier" <support@example.com>},       :exception_recipients => %w{my@mail.com} 

this doesn't throw error, not send mail either. please.

i've replaced:

config.action_mailer.delivery_method = :sendmail   # defaults to:    config.action_mailer.sendmail_settings = {      :location => '/usr/sbin/sendmail',      :arguments => '-i -t'    } 

with:

config.action_mailer.delivery_method = :smtp  config.action_mailer.smtp_settings = {     :address => "smtp.gmail.com",     :port => 587,     :domain => "google.com",     :user_name => "my@mail.com",     :password => "password",     :authentication => "plain",     :enable_starttls_auto => true } 

and worked fine :d !


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -