You can setup CrashReporter.NET by following below guide. It’s a three step process and you are ready to go.
Step - 1 : Add reference of CrashReporter.NET in your project.

Step - 2 : Now following dialog appears click on browse tab and and browse for downloaded CrashReporter.NET.dll file and click OK.

Step - 3 : Now add following lines in your application’s Program.cs file if you want to report all unhandled exceptions.
using System;
using System.Windows.Forms;
using System.Threading;
using CrashReporterDotNET;
namespace CrashReporterTest
{
static class Program
{
///
<summary> /// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.ThreadException +=
ApplicationThreadException;
//designer generated code.
}
static void ApplicationThreadException(object sender, ThreadExceptionEventArgs e)
{
var reportCrash = new ReportCrash
{
FromEmail = "Your gmail address",
ToEmail = "Email address where you want to send crash report",
SMTPHost = "smtp.gmail.com",
Port = 587,
UserName = "Your gmail address",
Password = "Your password",
EnableSSL = true,
};
reportCrash.Send(e.Exception);
}
}
}
If you want to handle exception reporting for individual exception use following code.
using System;
using System.Windows.Forms;
using System.IO;
using CrashReporterDotNET;
namespace CrashReporterTest
{
public partial class Form1 : Form
{
private ReportCrash reportCrash;
public Form1()
{
InitializeComponent();
reportCrash = new ReportCrash
{
FromEmail = "Your gmail address",
ToEmail = "Email address where you want to send crash report",
SMTPHost = "smtp.gmail.com",
Port = 587,
UserName = "Your gmail address",
Password = "Your password",
EnableSSL = true,
};
}
private void ButtonTestClick(object sender, EventArgs e)
{
try
{
File.Copy("test.txt", "error.txt");
}
catch (Exception exception)
{
reportCrash.Send(exception);
}
}
}
}
Make sure you use tools like
Eazfusctor.NET to protect your email and password from being seen. Also create new gmail account with random password that doesn’t contain secondary email or mobile to use gmail as a smtp server. This class library is under development and will get
many more features in near future. You can use your own smtp server to send crash reports.