In today's article we will concern ourselves with the basics and send a very simple email message. In future articles we will build on the source code presented today and will finally have a fully functional component for HTML emails and attachments. Prerequisite for using the source code in this article is an installation of the Microsoft .NET Framework SDK on a Web server.
Protocol works as it is the foundation for the sending of emails.
This is a part of the body text . TO are unspectacular and were 'previsible'. Net classes of the .NET Framework as helpers. Basically, it all now is a mattter of an instance of the TCPClient class and its Stream for connecting to the SMTP Server and for exchanging commands and status messages. The funcionality for sending the commands and for querying the status messages is hidden in the methods WriteToStream and ReadFromStream , respectively.