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 Attach a file to the report? #9

Open FrancoTampieri opened 6 years ago

FrancoTampieri commented 6 years ago

Hi I think that will be usefull attach a file to the report sended by mail.

Regards

Francop

ravibpatel commented 6 years ago

@drdran Currently you can't. But it is possible using little modification.

PandaWood commented 6 years ago

For this feature, you might want to consider zipping the attached file (and then support multiple attached files) - otherwise you might have a lot of trouble fiddling with MIME types for each file type.

This might be a hard decision, because If you choose to zip the files into one attachment, you'll probably want to use an existing zip library, but then you might lose an advantage of this library - having no dependencies?

Anyway, I do this in ExceptionReport.NET using DotNetZip - so feel free to see how I did it.

(I support attaching to Simple.MAPI message as well as SMTP - so the code is slightly more complicated)

ravibpatel commented 6 years ago

@PandaWood Thanks for the suggestion. I will definitely look into it. For lightweight zip library, you can check out ZipStorer.