BARANTMail/SMTPSession.cpp
2022-12-07 15:00:04 -08:00

15 lines
365 B
C++

# include "SMTPSession.h"
# include "Log.h"
namespace mail {
SMTPSession::SMTPSession(core::EPoll &ePoll, core::TCPServer &server)
: TCPSession(ePoll, server, "SMTP Client Session") {}
void SMTPSession::onConnected() {
coreutils::Log(coreutils::LOG_DEBUG_2) << "onConnected -> sending 220";
out << "220 localhost BMAMail" << CRLF;
}
}