From 0a93c0df8fd6a40b627cc53d51a249628db6b795 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 7 Mar 2024 16:40:03 +0100 Subject: Store attachment contents in the Email object. --- src/lib/email.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/email.h') 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 _bcc; struct Attachment { - boost::filesystem::path file; + dcp::ArrayData file; std::string name; std::string mime_type; }; -- cgit v1.2.3