summaryrefslogtreecommitdiff
path: root/src/lib/email.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-07 16:40:03 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-07 16:40:03 +0100
commit0a93c0df8fd6a40b627cc53d51a249628db6b795 (patch)
treed8aa0df9e1e4cf69014b659aae5dbcc472e75911 /src/lib/email.h
parentf610a8708f11d6052a995f31cd506bc93faafa1c (diff)
Store attachment contents in the Email object.
Diffstat (limited to 'src/lib/email.h')
-rw-r--r--src/lib/email.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/email.h b/src/lib/email.h
index 3bcb8af4a..36398bfd8 100644
--- a/src/lib/email.h
+++ b/src/lib/email.h
@@ -30,6 +30,7 @@ public:
void add_cc (std::string cc);
void add_bcc (std::string bcc);
+ /** Add attachment, copying the contents of the file into memory */
void add_attachment (boost::filesystem::path file, std::string name, std::string mime_type);
void send (std::string server, int port, EmailProtocol protocol, std::string user = "", std::string password = "");
@@ -61,7 +62,7 @@ private:
std::vector<std::string> _bcc;
struct Attachment {
- boost::filesystem::path file;
+ dcp::ArrayData file;
std::string name;
std::string mime_type;
};