Delayed_job in development
Right now my Usermailer is written so I have UserMailer.delay.deliver_blah. Everything works perfect, but like before I'd like the contents of the email printed out in the console f开发者_如何学JAVAor debugging. HOw do I do this?
Set the ActionMailer logger and set the correct log level, during mailer initialization.
ActionMailer::Base.logger = Logger.new(STDOUT)
ActionMailer::Base.logger.level = :info
OR
ActionMailer::Base.logger = Rails.logger
ActionMailer::Base.logger.level = :info
精彩评论