1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include "text.hpp" namespace smtp::message_builder { Text::Text( std::string const& text) : mText( text ) { } std::string Text::Get() const { std::string result; if( mBase ) { result = mBase->Get(); } result += "\r\n"; result += mText + "\r\n"; return result; } }