/// <summary> /// Prompts the user with a crash report and submits the report to an email address /// </summary> /// <param name="exception"></param> public static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
private static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
/// <summary> /// Prompts the user with a crash report and submits the report to an email address /// </summary> /// <param name="exception"></param> public static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" //Prev: [email protected] }; reportCrash.Send(exception); }
static void ApplicationThreadException(object sender, ThreadExceptionEventArgs e) { var reportCrash = new ReportCrash { FromEmail = "*****@*****.**", ToEmail = "*****@*****.**", SMTPHost = "smtp.gmail.com", Port = 587, UserName = "******", Password = "******", EnableSSL = true }; reportCrash.Send(e.Exception); }
private static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { FromEmail = "Your Gmail address", ToEmail = "Email address where you want to receive crash reports", SmtpHost = "Your SMTP server address for example smtp.gmail.com", Port = 587, UserName = "******", Password = "******", EnableSSL = true, }; reportCrash.Send(exception); }
/// <summary> /// Report an exception /// </summary> public static void SendCrashReport(Exception exception) { var reportCrash = new ReportCrash { FromEmail = "*****@*****.**", ToEmail = "*****@*****.**", SmtpHost = "smtp.gmail.com", Port = 587, UserName = "******", Password = "******", EnableSSL = true, }; reportCrash.Send(exception); }
public static void SendCrashReport(Exception exception, string developerMessage) { var reportCrash = new ReportCrash { FromEmail = "your gmail", ToEmail = "email where you want to recieve crash reports.", SmtpHost = "smtp.gmail.com", Port = 587, UserName = "******", Password = "******", EnableSSL = true, EmailRequired = true, CurrentCulture = CultureInfo.CreateSpecificCulture("es"), DeveloperMessage = developerMessage }; reportCrash.Send(exception); }
private static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { FromEmail = "*****@*****.**", ToEmail = "*****@*****.**", SmtpHost = "smtp.139.com", Port = 25, UserName = "******", Password = "******", EnableSSL = false, }; reportCrash.Send(exception); }
public static void ReportCrash(Exception exception) { var reportCrash = new ReportCrash { ToEmail = "*****@*****.**" }; reportCrash.Send(exception); }
// Put up dialog to send crash report. private static void SendCrashReport(Exception exception) { if (!crashReported) { crashReported = true; // Only report crash one time. Further ones are likely to be annoying and useless. var reportCrash = new ReportCrash { FromEmail = "*****@*****.**", ToEmail = "*****@*****.**", SmtpHost = "mail.purple-pen.org", Port = 587, UserName = "******", Password = "******", EnableSSL = false, TextIntro = MiscText.CrashIntro, TextEmail = MiscText.CrashEmail, TextMessage = MiscText.CrashMessage, TextSend = MiscText.CrashSend, TextSave = MiscText.CrashSave, TextCancel = MiscText.CrashCancel }; reportCrash.Send(exception); } }