/home/bradarant/barant/BMAMail/__SMTP_EHLO.h
Go to the documentation of this file.
#ifndef ____SMTP_EHLO_h__
#define ____SMTP_EHLO_h__
#include "SMTPCommand.h"
namespace mail {
class __SMTP_EHLO : public SMTPCommand {
int processCommand(coreutils::PString request, SMTPSession &session, std::stringstream &data) {
session.clientDomainName = request[1].str();
data << "250-" << getHostName() << CRLF;
// cout << "250-STARTTLS" << CRLF;
// cout << "250-PIPELINING" << CRLF;
// cout << "250-8BITMIME" << CRLF;
data << "250-AUTH LOGIN" << CRLF;
data << "250 HELP" << CRLF;
session->state = READY;
}
};
}
#endif
mail::SMTPSession::clientDomainName
std::string clientDomainName
Definition: SMTPSession.h:21
mail::SMTPSession::state
State state
Definition: SMTPSession.h:25
mail::READY
Definition: SMTPSession.h:11
mail
Definition: __IMAP_APPEND.h:7
SMTPCommand.h
mail::__SMTP_EHLO
Definition: __SMTP_EHLO.h:8
mail::SMTPCommand
Definition: SMTPCommand.h:9
CRLF
#define CRLF
Definition: SMTPSession.h:7
mail::SMTPSession
Definition: SMTPSession.h:15