diff options
Diffstat (limited to 'src/mail.hpp')
-rw-r--r-- | src/mail.hpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/mail.hpp b/src/mail.hpp new file mode 100644 index 0000000..3445d76 --- /dev/null +++ b/src/mail.hpp @@ -0,0 +1,33 @@ +#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; + bool _hasError; + std::string lastErrorMsg; + + 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( ); + bool hasError( ); + std::string getLastError( ); +}; + + +#endif |