diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-29 18:58:07 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-29 18:58:07 +0200 |
commit | cb69299b9d59db0888e942025ae4915c6f32d066 (patch) | |
tree | fcb85301442a9eda1ed9d60a8ba52d8c60f11114 /src/mail.hpp | |
parent | fa132310bf61c115907e5c237333207f308b1de4 (diff) | |
download | aCms-cb69299b9d59db0888e942025ae4915c6f32d066.tar.gz aCms-cb69299b9d59db0888e942025ae4915c6f32d066.tar.bz2 |
added libquickmail and email registration
Diffstat (limited to 'src/mail.hpp')
-rw-r--r-- | src/mail.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mail.hpp b/src/mail.hpp new file mode 100644 index 0000000..c9bd8ef --- /dev/null +++ b/src/mail.hpp @@ -0,0 +1,29 @@ +#ifndef MAIL_HPP +#define MAIL_HPP + +#include <string> + +#include "quickmail.h" + +class mailer { + private: + std::string server; + unsigned short port; + std::string username; + std::string password; + std::string from; + quickmail mailobj; + + public: + std::string to; + std::string subject; + std::string body; + + public: + mailer( std::string server, unsigned short port, std::string username, std::string password, std::string from ); + ~mailer( ); + void send( ); +}; + + +#endif |