summaryrefslogtreecommitdiff
path: root/src/mail.hpp
blob: c9bd8ef39139157d9c5381bbe57ce3c716aa8eca (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
#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;
	
	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( );
};


#endif