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