A MailClient wrote by Java swing with which you can study SMTP and POP protocol.  Double click MailClient.jar to run.