X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/750d64e653a18b75f1a2798133a377143a2ac59e..ed99e548af57d66000f9247b41dcedfa617b49d1:/samples/debugrpt/debugrpt.cpp diff --git a/samples/debugrpt/debugrpt.cpp b/samples/debugrpt/debugrpt.cpp index 6680fe8a09..cd2e4d5be2 100644 --- a/samples/debugrpt/debugrpt.cpp +++ b/samples/debugrpt/debugrpt.cpp @@ -69,6 +69,32 @@ protected: } }; +// another possibility would be to build email library from contrib and use +// this class, after uncommenting it: +#if 0 + +#include "wx/net/email.h" + +class MyDebugReport : public wxDebugReportCompress +{ +public: + virtual bool DoProcess() + { + if ( !wxDebugReportCompress::DoProcess() ) + return false; + wxMailMessage msg(GetReportName() + _T(" crash report"), + _T("vadim@wxwindows.org"), + wxEmptyString, // mail body + wxEmptyString, // from address + GetCompressedFileName(), + _T("crashreport.zip")); + + return wxEmail::Send(msg); + } +}; + +#endif // 0 + // ---------------------------------------------------------------------------- // helper functions // ----------------------------------------------------------------------------