summaryrefslogtreecommitdiff
path: root/src/lib/emailer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-07-10 02:02:19 +0200
committerCarl Hetherington <cth@carlh.net>2021-07-10 02:02:19 +0200
commit5b0e331380c83ec9835e8aa42fd342b2f0ad275d (patch)
tree13c27f0b3420f5c3a268a5a22a9172675fdc370c /src/lib/emailer.cc
parent5d838bc863a7569e68546026c109607fd5a94362 (diff)
Use dcp::compose rather than our own.compose
Diffstat (limited to 'src/lib/emailer.cc')
-rw-r--r--src/lib/emailer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/emailer.cc b/src/lib/emailer.cc
index 6ef23c3e0..4933b9953 100644
--- a/src/lib/emailer.cc
+++ b/src/lib/emailer.cc
@@ -19,10 +19,10 @@
*/
-#include "compose.hpp"
#include "config.h"
#include "emailer.h"
#include "exceptions.h"
+#include <dcp/compose.h>
#include <curl/curl.h>
#include <boost/algorithm/string.hpp>
#include <boost/date_time/c_local_time_adjustor.hpp>
@@ -189,9 +189,9 @@ Emailer::send (string server, int port, EmailProtocol protocol, string user, str
if ((protocol == EmailProtocol::AUTO && port == 465) || protocol == EmailProtocol::SSL) {
/* "SSL" or "Implicit TLS"; I think curl wants us to use smtps here */
- curl_easy_setopt (curl, CURLOPT_URL, String::compose("smtps://%1:%2", server, port).c_str());
+ curl_easy_setopt (curl, CURLOPT_URL, dcp::compose("smtps://%1:%2", server, port).c_str());
} else {
- curl_easy_setopt (curl, CURLOPT_URL, String::compose("smtp://%1:%2", server, port).c_str());
+ curl_easy_setopt (curl, CURLOPT_URL, dcp::compose("smtp://%1:%2", server, port).c_str());
}
if (!user.empty ()) {