Allow content parts to not be preset in XML.
[dcpomatic.git] / src / lib / send_problem_report_job.cc
index 8979316ac6d4b40bc8bcf83002b0a87d0cd43a35..89fe2a715843f63f35e0f6205f56a455b453c04c 100644 (file)
@@ -25,6 +25,8 @@
 #include "log.h"
 #include "version.h"
 #include "emailer.h"
+#include "environment_info.h"
+#include <boost/foreach.hpp>
 
 #include "i18n.h"
 
@@ -71,6 +73,12 @@ SendProblemReportJob::run ()
 
        body += "Version: " + string (dcpomatic_version) + " " + string (dcpomatic_git_commit) + "\n\n";
 
+       BOOST_FOREACH (string i, environment_info ()) {
+               body += i + "\n";
+       }
+
+       body += "\n";
+
        if (_film) {
                body += "log head and tail:\n";
                body += "---<8----\n";
@@ -85,9 +93,10 @@ SendProblemReportJob::run ()
        to.push_back ("carl@dcpomatic.com");
 
        Emailer emailer (_from, to, "DCP-o-matic problem report", body);
-       emailer.send ();
+       emailer.send ("main.carlh.net", 2525);
 
        set_progress (1);
+       set_state (FINISHED_OK);
 }
 
 void