views:

77

answers:

1
Q: 

ELMAH SMTP

I am using ELMAH to email error messages. Is there an elegant solution to query a database for SMTP settings rather than use web.config? I would need it to be done before each error is thrown.

The solution/s suggested here are a bit hacky for me.

A: 

Aside from your hacky method, the only other option that I can think of is to roll your own version of the binary, like SO does. You can find the source here:

http://code.google.com/p/elmah/source/browse/trunk/src/Elmah/

Gavin Miller