BMAMail  1.0.0
E-Mail System
/home/bradarant/barant/BMAMail/SMTPSession.h
Go to the documentation of this file.
1 #ifndef __SMTPSession_h__
2 # define __SMTPSession_h__
3 
4 # include "TCPSession.h"
5 # include "TCPServer.h"
6 
7 # define CRLF "\r\n"
8 
9 namespace mail {
10 
14 
15  class SMTPSession : public core::TCPSession {
16 
17  public:
18  SMTPSession(core::EPoll &ePoll, core::TCPServer &server)
19  : TCPSession(ePoll, server) {}
20 
21  std::string clientDomainName;
22  std::string userName;
23  std::string password;
24  std::stringstream mailData;
28  bool relay = false;
29  std::string sender;
30  std::vector<std::string> recipientList;
31 
32  };
33 
34 }
35 
36 #endif
Definition: SMTPSession.h:13
std::string clientDomainName
Definition: SMTPSession.h:21
State state
Definition: SMTPSession.h:25
Definition: SMTPSession.h:12
Definition: SMTPSession.h:11
Definition: SMTPSession.h:11
Definition: SMTPSession.h:13
Definition: SMTPSession.h:11
AuthState authState
Definition: SMTPSession.h:26
Definition: SMTPSession.h:11
SMTPSession(core::EPoll &ePoll, core::TCPServer &server)
Definition: SMTPSession.h:18
bool relay
Definition: SMTPSession.h:28
std::vector< std::string > recipientList
Definition: SMTPSession.h:30
Mode mode
Definition: SMTPSession.h:27
Definition: __IMAP_APPEND.h:7
std::string password
Definition: SMTPSession.h:23
std::string userName
Definition: SMTPSession.h:22
AuthState
Definition: SMTPSession.h:12
std::string sender
Definition: SMTPSession.h:29
Definition: SMTPSession.h:15
std::stringstream mailData
Definition: SMTPSession.h:24
Definition: SMTPSession.h:12
Mode
Definition: SMTPSession.h:13
Definition: SMTPSession.h:12
State
Definition: SMTPSession.h:11
Definition: SMTPSession.h:11
Definition: SMTPSession.h:12