BMAMail  1.0.0
E-Mail System
/home/bradarant/barant/BMAMail/__SMTP_EHLO.h
Go to the documentation of this file.
1 #ifndef ____SMTP_EHLO_h__
2 #define ____SMTP_EHLO_h__
3 
4 #include "SMTPCommand.h"
5 
6 namespace mail {
7 
8  class __SMTP_EHLO : public SMTPCommand {
9 
10  int processCommand(coreutils::PString request, SMTPSession &session, std::stringstream &data) {
11 
12  session.clientDomainName = request[1].str();
13 
14  data << "250-" << getHostName() << CRLF;
15  // cout << "250-STARTTLS" << CRLF;
16  // cout << "250-PIPELINING" << CRLF;
17  // cout << "250-8BITMIME" << CRLF;
18  data << "250-AUTH LOGIN" << CRLF;
19  data << "250 HELP" << CRLF;
20  session->state = READY;
21  }
22 
23  };
24 
25 }
26 
27 #endif
std::string clientDomainName
Definition: SMTPSession.h:21
State state
Definition: SMTPSession.h:25
Definition: SMTPSession.h:11
Definition: __IMAP_APPEND.h:7
Definition: __SMTP_EHLO.h:8
Definition: SMTPCommand.h:9
#define CRLF
Definition: SMTPSession.h:7
Definition: SMTPSession.h:15