views:

20

answers:

1

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 for debugging. HOw do I do this?

A: 

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
KandadaBoggu