Wtx ~ Wt Extension Library
WtxLib
Message.cpp
1 
2 #include "Message.h"
3 
4 void Wtx::Mail::Message::addAttachment
5 (
6  const std::string & mimeType,
7  const std::string & fileName,
8  std::istream *data
9 )
10 {
11  Wt::Mail::Message::addAttachment( mimeType, fileName, data );
12 
13  m_attachments.push_back( { mimeType, fileName, data } );
14 }
15 
16 const std::vector< Wtx::Mail::Message::Attachment > & Wtx::Mail::Message::attachments() const
17 {
18  return m_attachments;
19 }
20 
21