Send Mail On Exception


I want to Send Mail when Exception is being throws by YII.

Anyone has idea about it!


  1. CEmailLogRoute (guide)

  2. Custom event handler for CApplication::onException()

Use CEmailLogRoute as suggested by phtamas and configure the categories property to ‘exception.*’.

Thanks phtamas & Mike!

I was wondering to implement it in core way,

But YII is just awesome! I love it :D