ravibpatel / CrashReporter.NET

Send crash reports of your classic desktop application developed using .NET Framework directly to your mail's inbox with full exception report, stack trace and screenshot.
MIT License
184 stars 74 forks source link

Can I Customize 'From Mail' and Body of the Email ? #3

Closed koushik077 closed 7 years ago

koushik077 commented 7 years ago

I tried adding as below:-

var reportCrash = new ReportCrash
            {
                CurrentCulture = new CultureInfo("en-US"),
                AnalyzeWithDoctorDump = true,
                DeveloperMessage = developerMessage,
                ToEmail = "user1@gmail.com",
        FromEmail = "user2@gmail.com",
        SmtpHost = "smtp.gmail.com",
        UserName = "user2@gmail.com",
        Password = "--------------",
                DoctorDumpSettings = new DoctorDumpSettings
                {
                    ApplicationID = new Guid("8bac08ca-904c-4622-97f6-33f505e7da5f"),
                    OpenReportInBrowser = false
                },
            };

After adding From Email also i am getting error reports (through mail) from notification@drdrump.com. @ravibpatel

ravibpatel commented 7 years ago

@koushik077 You can't customize the Body of the email without modifying the code inside CrashReporter.NET. You can customize From Mail though. See answer in issue #4.