From cb69299b9d59db0888e942025ae4915c6f32d066 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 29 Apr 2015 18:58:07 +0200 Subject: added libquickmail and email registration --- src/mail.hpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/mail.hpp (limited to 'src/mail.hpp') 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 + +#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 -- cgit v1.2.3-54-g00ecf