30 lines
760 B
C++
30 lines
760 B
C++
#ifndef ____SMTP_EHLO_h__
|
|
#define ____SMTP_EHLO_h__
|
|
|
|
#include "Command.h"
|
|
|
|
namespace mail {
|
|
|
|
class __SMTP_EHLO : public core::Command {
|
|
|
|
int processCommand(std::string request, Session *session, std::stringstream &data);
|
|
|
|
if(input.length() > 5) {
|
|
string hostName = input.substr(5);
|
|
}
|
|
|
|
else {
|
|
|
|
// TODO: Provide error message demanding identity here.
|
|
//
|
|
}
|
|
|
|
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";
|
|
}
|
|
|