summaryrefslogtreecommitdiff
path: root/src/mail.hpp
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-04-30 21:02:15 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-04-30 21:02:15 +0200
commit536cc69836d758ab7d156115ce296a3a25ce8aac (patch)
treeff24e7f4ed01a9343fe73f049defb4b93f201a5a /src/mail.hpp
parenta3e26005fe00abe8836ba5dcdd1b9887ae6b1c27 (diff)
parent37dd84ec2145f500dce94fb136bd266b6445ae16 (diff)
downloadaCms-536cc69836d758ab7d156115ce296a3a25ce8aac.tar.gz
aCms-536cc69836d758ab7d156115ce296a3a25ce8aac.tar.bz2
Merge branch 'master' of ssh://git.andreasbaumann.cc/strusCms
Diffstat (limited to 'src/mail.hpp')
-rw-r--r--src/mail.hpp33
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