Project Description
It's a component that sends an application error log via email.

How to use:

Place the following code snippet in the global.asax file;

void Application_Error(object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs

new Log();
}

and configure the mail options in the web.config file.

<appSettings>
<add key="EnableLog" value="true" />
<add key="ApplicationName" value="LogError Test" />
<add key="LogTo" value="webmaster@mymail.com" />
</appSettings>

<system.net>
<mailSettings>
<smtp from="localhost">
<network host="myhost" port="25" defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>

Note that the component will only send an email if the SMTP mail options are correctly configured
Last edited Dec 18 2007 at 5:58 PM by Stiven, version 10
Comments
No comments yet.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | CodePlex Blog | Version 2008.12.9.14291