Created initial SMTP handlers.
This commit is contained in:
1 parent
1751d431c9
commit
caa8dd7d90
11 files changed
+608
-12
No files matched your search
@@ -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";
|
||||
}
|
||||
Reference in new issue
Block a user