diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-30 21:02:15 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-04-30 21:02:15 +0200 |
commit | 536cc69836d758ab7d156115ce296a3a25ce8aac (patch) | |
tree | ff24e7f4ed01a9343fe73f049defb4b93f201a5a /src/mail.hpp | |
parent | a3e26005fe00abe8836ba5dcdd1b9887ae6b1c27 (diff) | |
parent | 37dd84ec2145f500dce94fb136bd266b6445ae16 (diff) | |
download | aCms-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.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 |