diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-13 13:07:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-11-13 13:07:16 +0000 |
| commit | df89a39cfd34d0d70609daa214d3b618bb6223bd (patch) | |
| tree | 1629307cc535fc0ea8804ca935022dddf163135d /src/lib/emailer.h | |
| parent | 43800d83434697a31bdfae62dd377cfc3900986b (diff) | |
Allow multiple recipients of KDM emails (#745).
Diffstat (limited to 'src/lib/emailer.h')
| -rw-r--r-- | src/lib/emailer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/emailer.h b/src/lib/emailer.h index 89993ca48..c8ebac7b6 100644 --- a/src/lib/emailer.h +++ b/src/lib/emailer.h @@ -23,7 +23,7 @@ class Emailer { public: - Emailer (std::string from, std::string to, std::string subject, std::string body); + Emailer (std::string from, std::list<std::string> to, std::string subject, std::string body); void add_cc (std::string cc); void add_bcc (std::string bcc); @@ -38,11 +38,12 @@ public: size_t get_data (void* ptr, size_t size, size_t nmemb); int debug (CURL* curl, curl_infotype type, char* data, size_t size); -private: static std::string address_list (std::list<std::string> addresses); +private: + std::string _from; - std::string _to; + std::list<std::string> _to; std::string _subject; std::string _body; std::list<std::string> _cc; |
