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/mail_to.cpp | |
download | obmc-sila-smtp-9fa4addff6f90a8b5697a594e034f5517d64dd25.tar.xz |
first comit
Diffstat (limited to 'src/message_builder/mail_to.cpp')
-rw-r--r-- | src/message_builder/mail_to.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/message_builder/mail_to.cpp b/src/message_builder/mail_to.cpp new file mode 100644 index 0000000..c73e2a7 --- /dev/null +++ b/src/message_builder/mail_to.cpp @@ -0,0 +1,23 @@ +#include "mail_to.hpp" + +namespace smtp::message_builder +{ + MailTo::MailTo( std::string const& mail_to) + : mMailTo( mail_to ) + { + + } + + std::string MailTo::Get() const + { + std::string result; + if( mBase ) + { + result = mBase->Get(); + } + + result += "To: " + mMailTo +"\r\n"; + + return result; + } +} |