summaryrefslogtreecommitdiff
path: root/src/lib/send_problem_report_job.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-31 03:14:24 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-31 03:14:24 +0100
commit8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8 (patch)
treef8b25b13ac3732838be259e469d045438d999e7b /src/lib/send_problem_report_job.cc
parent4985d87750c87019dfe5dc7ef44e12c45326dd0e (diff)
More enum class additions.
Diffstat (limited to 'src/lib/send_problem_report_job.cc')
-rw-r--r--src/lib/send_problem_report_job.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/send_problem_report_job.cc b/src/lib/send_problem_report_job.cc
index cff1c8e9f..7f60a3fdc 100644
--- a/src/lib/send_problem_report_job.cc
+++ b/src/lib/send_problem_report_job.cc
@@ -80,7 +80,7 @@ SendProblemReportJob::run ()
string body = _summary + "\n\n";
- body += "Version: " + string (dcpomatic_version) + " " + string (dcpomatic_git_commit) + "\n\n";
+ body += "Version: " + string(dcpomatic_version) + " " + string(dcpomatic_git_commit) + "\n\n";
for (auto i: environment_info ()) {
body += i + "\n";
@@ -101,11 +101,8 @@ SendProblemReportJob::run ()
body += "---<8----\n";
}
- list<string> to;
- to.push_back ("carl@dcpomatic.com");
-
- Emailer emailer (_from, to, "DCP-o-matic problem report", body);
- emailer.send ("main.carlh.net", 2525, EMAIL_PROTOCOL_STARTTLS);
+ Emailer emailer (_from, {"carl@dcpomatic.com"}, "DCP-o-matic problem report", body);
+ emailer.send ("main.carlh.net", 2525, EmailProtocol::STARTTLS);
set_progress (1);
set_state (FINISHED_OK);