summaryrefslogtreecommitdiff
path: root/src/mail.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail.hpp')
-rw-r--r--src/mail.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mail.hpp b/src/mail.hpp
index c9bd8ef..3445d76 100644
--- a/src/mail.hpp
+++ b/src/mail.hpp
@@ -13,6 +13,8 @@ class mailer {
std::string password;
std::string from;
quickmail mailobj;
+ bool _hasError;
+ std::string lastErrorMsg;
public:
std::string to;
@@ -23,6 +25,8 @@ class mailer {
mailer( std::string server, unsigned short port, std::string username, std::string password, std::string from );
~mailer( );
void send( );
+ bool hasError( );
+ std::string getLastError( );
};