Actions
Feature #7363
openAccess to Mail::Message::attachments()
Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
12/10/2019
Due date:
% Done:
0%
Estimated time:
Description
It would be nice if std::vector< Attachment > was exposed;
Wt/Mail/Message.h:
45 class WT_API Message
46 {
47 public:
48 struct Attachment {
49 std::string mimeType;
50 std::string fileName;
51 std::istream *data;
52 };
53
216 /*! \brief Adds an attachment.
217 *
218 * Ownership of the \p data stream is not transferred; you should keep this
219 * object valid until the message has been sent using Client::send() or
220 * written using write().
221 */
222 void addAttachment(const std::string& mimeType, const std::string& fileName,
223 »·»· std::istream *data);
224
225 const std::vector< Attachment > & attachments() const
226 {
227 return attachments_;
228 }
229
Actions