summaryrefslogtreecommitdiff
path: root/src/mail.hpp
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-04-30 09:46:02 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-04-30 09:46:02 +0200
commitb1c035600b6255b03a4b6930ce61698274ba9de2 (patch)
tree3b7d2fcf8dc8b294ed31bb80fe32a51688122ee7 /src/mail.hpp
parentcb69299b9d59db0888e942025ae4915c6f32d066 (diff)
downloadaCms-b1c035600b6255b03a4b6930ce61698274ba9de2.tar.gz
aCms-b1c035600b6255b03a4b6930ce61698274ba9de2.tar.bz2
email sending fixes
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( );
};