Created initial SMTP handlers.

This commit is contained in:
barant committed 2019-07-28 19:47:50 -07:00
1 parent 1751d431c9
commit caa8dd7d90
11 files changed
+608 -12

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
//---------------------------------------------------------------------------
// 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";
}