Fix typo in log message.
[dcpomatic.git] / src / lib / emailer.h
index 0309b134d17c16fca408fc8daecbb680a4133900..ef41b032063b863d5230bad876c431806438500e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2015-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #include <curl/curl.h>
 #include <boost/scoped_array.hpp>
 
+
 class Emailer
 {
 public:
@@ -30,7 +32,7 @@ public:
        void add_bcc (std::string bcc);
        void add_attachment (boost::filesystem::path file, std::string name, std::string mime_type);
 
-       void send (std::string server, int port, std::string user = "", std::string password = "");
+       void send (std::string server, int port, EmailProtocol protocol, std::string user = "", std::string password = "");
 
        std::string notes () const {
                return _notes;
@@ -49,6 +51,7 @@ public:
 private:
 
        std::string fix (std::string s) const;
+       static std::string encode_rfc1342 (std::string subject);
 
        std::string _from;
        std::list<std::string> _to;