diff options
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 |