BMAMail  1.0.0
E-Mail System
/home/bradarant/barant/BMAMail/__SMTP_HELO.h
Go to the documentation of this file.
1 #ifndef ____SMTP_HELO_h__
2 # define ____SMTP_HELO_h__
3 
4 # include "SMTPCommand.h"
5 # include "SMTPSession.h"
6 
7 namespace mail {
8 
9  class __SMTP_HELO : public SMTPCommand {
10 
11  int processCommand(coreutils::PString request, SMTPSession &session, std::stringstream &data) {
12 
13  string clientName = request[1].str();
14 
15  data << "250 " << session.service.hostName << CRLF;
16  state = READY;
17  }
18 
19  };
20 
21 }
22 
23 #endif
Definition: SMTPSession.h:11
Definition: __IMAP_APPEND.h:7
Definition: __SMTP_HELO.h:9
Definition: SMTPCommand.h:9
#define CRLF
Definition: SMTPSession.h:7
Definition: SMTPSession.h:15