diff options
author | eportnov <eportnov@ibs.ru> | 2022-09-13 15:03:25 +0300 |
---|---|---|
committer | eportnov <eportnov@ibs.ru> | 2022-09-13 15:03:25 +0300 |
commit | e8aeea36e6b48e18d27f9d7857cd29524cc8aa1f (patch) | |
tree | b99540f810072b746d033d6cd8d06aabb75afcad /src/message/builder/mail_to.cpp | |
parent | a58088ec7a45bb86b155a8ef9514b35b0ba8d1c9 (diff) | |
download | obmc-sila-smtp-e8aeea36e6b48e18d27f9d7857cd29524cc8aa1f.tar.xz |
add writing filesbugfix/write_file
Diffstat (limited to 'src/message/builder/mail_to.cpp')
-rw-r--r-- | src/message/builder/mail_to.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/message/builder/mail_to.cpp b/src/message/builder/mail_to.cpp index dab1b7f..3ef7e0e 100644 --- a/src/message/builder/mail_to.cpp +++ b/src/message/builder/mail_to.cpp @@ -2,8 +2,8 @@ namespace smtp::message::builder { - MailTo::MailTo( std::string const& mail_to) - : mMailTo( mail_to ) + MailTo::MailTo( manage::MailsSet const& mails ) + : mMailTo( mails ) { } @@ -16,8 +16,13 @@ namespace smtp::message::builder result = mBase->Get(); } - result += "To: " + mMailTo +"\r\n"; + result += "To: " + GetFirstMail() +"\r\n"; return result; } + + std::string MailTo::GetFirstMail() const + { + return *mMailTo.begin(); + } } |