Give 'wrong target' KDM errors in a dialogue box rather than in the job manager ...
[dcpomatic.git] / src / lib / send_problem_report_job.cc
index aac2b6e66645cfb8ef5e0520a346adc882b6e7fe..d27609f0bdd715aac50fff167e7dbbaf40b2c042 100644 (file)
@@ -52,6 +52,11 @@ SendProblemReportJob::SendProblemReportJob (
 
 }
 
+SendProblemReportJob::~SendProblemReportJob ()
+{
+       stop_thread ();
+}
+
 string
 SendProblemReportJob::name () const
 {
@@ -101,7 +106,7 @@ SendProblemReportJob::run ()
        to.push_back ("carl@dcpomatic.com");
 
        Emailer emailer (_from, to, "DCP-o-matic problem report", body);
-       emailer.send ("main.carlh.net", 2525);
+       emailer.send ("main.carlh.net", 2525, EMAIL_PROTOCOL_STARTTLS);
 
        set_progress (1);
        set_state (FINISHED_OK);