From 5b0e331380c83ec9835e8aa42fd342b2f0ad275d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 10 Jul 2021 02:02:19 +0200 Subject: Use dcp::compose rather than our own. --- src/lib/emailer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/emailer.cc') 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 #include #include #include @@ -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 ()) { -- cgit v1.2.3