blob: 3445d7620efc4d780364fc73106eb44014d28701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|