#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; 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