Implemented some features that will help simplify writing an SMTP client