diff options
author | eportnov <eportnov@ibs.ru> | 2022-09-09 11:10:14 +0300 |
---|---|---|
committer | eportnov <eportnov@ibs.ru> | 2022-09-09 12:41:59 +0300 |
commit | 9fa4addff6f90a8b5697a594e034f5517d64dd25 (patch) | |
tree | b429545eba770ea5aadd030b40f62ca8ab5b208a /src/message_builder/from.cpp | |
download | obmc-sila-smtp-9fa4addff6f90a8b5697a594e034f5517d64dd25.tar.xz |
first comit
Diffstat (limited to 'src/message_builder/from.cpp')
-rw-r--r-- | src/message_builder/from.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/message_builder/from.cpp b/src/message_builder/from.cpp new file mode 100644 index 0000000..094e1a2 --- /dev/null +++ b/src/message_builder/from.cpp @@ -0,0 +1,22 @@ +#include "from.hpp" + +namespace smtp::message_builder +{ + + From::From( std::string const& mail_to ) + :mMailTo( mail_to ) + { + + } + + std::string From::Get() const + { + std::string result; + if( mBase ) + { + result = mBase->Get(); + } + result += "From: " + mMailTo + "\r\n"; + return result; + } +} |