Project

General

Profile

Feature #7363

Access to Mail::Message::attachments()

Added by Mark Petryk almost 2 years ago. Updated over 1 year ago.

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 
#1

Updated by Mark Petryk over 1 year ago

ping :)

Also available in: Atom PDF