X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Femailer.h;h=fa278e535447eb675d0a7767ecec7112a1765073;hb=500f121343adb67fdbce10a41b1902ccdbbba1e2;hp=7a614019e3c7e7c1a031250f323622d5093d2212;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/emailer.h b/src/lib/emailer.h index 7a614019e..fa278e535 100644 --- a/src/lib/emailer.h +++ b/src/lib/emailer.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2015 Carl Hetherington + Copyright (C) 2015-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,9 +18,11 @@ */ + #include #include + 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; @@ -48,6 +50,8 @@ public: private: + std::string fix (std::string s) const; + std::string _from; std::list _to; std::string _subject;