BARANTMail/__SMTP_EHLO.h

25 lines
766 B
C

//---------------------------------------------------------------------------
// EHLO command request handling.
//---------------------------------------------------------------------------
else if(command(input) == "EHLO") {
if(input.length() > 5) {
string hostName = input.substr(5);
}
else {
// TODO: Provide error message demanding identity here.
//
}
cout << "250-" << getHostName() << CRLF;
// cout << "250-STARTTLS" << CRLF;
// cout << "250-PIPELINING" << CRLF;
// cout << "250-8BITMIME" << CRLF;
cout << "250-AUTH LOGIN" << CRLF;
cout << "250 HELP" << CRLF;
state = "READY";
}