In the Network Services course at the college I had to write a pseudo code to demonstrate how SMTP clients communicate with SMTP servers to send emails over SMTP protocol.
Since I hate writing a pseudo code for such simple application I’ve decided to use C# .NET
Notes:
- The SMTP server is set up on a virtual machine, that explains the “192.168.184.2”
- The SMTP clients doesn’t support secure communications for SMTP authentication, it was meant to be as simple as possible.
- I use Regular Expressions to run some validations and do Dot Stuffing that is required by SMTP if your Content-Transfer-Encoding was set to “7bit”