Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
[dcpomatic.git] / src / lib / send_problem_report_job.cc
index 803e655a6ee8a7bfd89873c1fddc49946b12bdbc..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,7 +93,7 @@ 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);