BMAMail  1.0.0
E-Mail System
/home/bradarant/barant/BMAMail/__SMTP_HELP.h
Go to the documentation of this file.
1 #ifndef ____SMTP_EHLO_h__
2 #define ____SMTP_EHLO_h__
3 
4 #include "Command.h"
5 
6 namespace mail {
7 
8  class __SMTP_EHLO : public core::Command {
9 
10  int processCommand(coreutils::PString request, Session *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 
Definition: __IMAP_APPEND.h:7
#define CRLF
Definition: SMTPSession.h:7