Extract all uses of DCP-o-matic name to allow branding.
[dcpomatic.git] / src / lib / send_problem_report_job.cc
index 34822b1561d7ade97c41d8dd236a4c383c9888fc..ed78112e9ea5765eea15b84c768eeb6686d3c49d 100644 (file)
 */
 
 
-#include "send_problem_report_job.h"
 #include "compose.hpp"
-#include "film.h"
 #include "cross.h"
+#include "email.h"
+#include "environment_info.h"
+#include "film.h"
 #include "film.h"
 #include "log.h"
+#include "send_problem_report_job.h"
+#include "variant.h"
 #include "version.h"
-#include "emailer.h"
-#include "environment_info.h"
 #include <libxml++/libxml++.h>
 
 #include "i18n.h"
@@ -108,8 +109,8 @@ SendProblemReportJob::run ()
                body += "---<8----\n";
        }
 
-       Emailer emailer (_from, {"carl@dcpomatic.com"}, "DCP-o-matic problem report", body);
-       emailer.send ("main.carlh.net", 2525, EmailProtocol::STARTTLS);
+       Email email(_from, {"carl@dcpomatic.com"}, variant::insert_dcpomatic("%1 problem report"), body);
+       email.send("main.carlh.net", 2525, EmailProtocol::STARTTLS);
 
        set_progress (1);
        set_state (FINISHED_OK);