Publish exception to Email in Exception Handling Exception Block

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello and hi everyone..
How can i publish my exception message to email in Exception Handling
Application Block??
 
emy said:
Hello and hi everyone..
How can i publish my exception message to email in Exception Handling
Application Block??

Study how the other publishers get their data and write your own
MailPublisher.
We did that for a previous version of this application block
and it works fine.

Some notes:
* implement the interface IExceptionPublisher
* copy the "message body generation" from an other publisher
* add a line to web.config to add your new publisher to the list
(add some extra parameters, like "to" and "from" email adresses)
 
Back
Top