summaryrefslogtreecommitdiff
path: root/src/message/sender.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/message/sender.hpp')
-rw-r--r--src/message/sender.hpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/message/sender.hpp b/src/message/sender.hpp
index ca2c3ff..d19e209 100644
--- a/src/message/sender.hpp
+++ b/src/message/sender.hpp
@@ -7,32 +7,32 @@
#include "managment/settings.hpp"
#include "managment/mail.hpp"
+
namespace smtp::message
{
- struct WriteThis
- {
- int counter;
- };
-
- class Sender
- {
- public:
- Sender( manage::Settings& settings_storage, manage::Mail const& mail_to );
- ~Sender() = default;
-
- bool Send( std::string const& mail_from, std::string const& subject, std::string const& text );
- private:
- void UpdateMailText( std::string const& mail_from, std::string const& subject, std::string const& textt ) const;
- void InitSenders( std::string const& mail_from, std::list<std::string> const& mail_to );
- void FillRecipients(CURL* curl, curl_slist* recipients );
- std::string GetHostPortData() const;
- static size_t ReadCallBack( void *ptr, size_t size, size_t nmemb, void *userp );
-
- manage::Settings& mSettingsStorage;
- manage::Mail const& mMailTo;
-
- bool InitCurl( CURL* curl, WriteThis const& upload_ctx, std::string const& mail_from );
- };
+ struct WriteThis
+ {
+ int counter;
+ };
+
+ class Sender
+ {
+ public:
+ Sender( manage::Settings& settings_storage, manage::Mail const& mail_to );
+ ~Sender() = default;
+
+ bool Send( std::string const& mail_from, std::string const& subject, std::string const& text );
+ private:
+ void UpdateMailText( std::string const& mail_from, std::string const& subject, std::string const& textt ) const;
+ void FillRecipients( CURL* curl, curl_slist* recipients );
+ std::string GetHostPortData() const;
+ static size_t ReadCallBack( void* ptr, size_t size, size_t nmemb, void* userp );
+
+ manage::Settings& mSettingsStorage;
+ manage::Mail const& mMailTo;
+
+ bool InitCurl( CURL* curl, WriteThis const& upload_ctx, std::string const& mail_from );
+ };
}