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

+19
View File
@@ -0,0 +1,19 @@
//---------------------------------------------------------------------------
// HELO command request handling.
//---------------------------------------------------------------------------
if(command(input) == "HELO") {
if(input.length() > 5) {
string hostName = input.substr(5);
}
else {
// TODO: Provide error message demanding identity here.
//
}
cout << "250 " << getHostName() << CRLF;
state = "READY";
}