summaryrefslogtreecommitdiff
path: root/src/message/builder/text.cpp
blob: c478b7df81de143f37110cef4c7bc104f04a8a5d (plain)
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;
    }
}