Telnetting in C#
-
Hello everyone, There is a project here where the next step is to be able to communicate with a mail server. Right now I'm using Telnet to get the job done, but in the near future this will become huge and I need a way to automate this. When I start, I type: "telnet mail.theserver.com 25". This starts up a connection with theserver on port 25 (the mail server). After that, I'm communicating directly with the server through port 25. I need to be able to automatically send information through this port using C# so that I can have an interface, instead of typing everything by hand. I found a few leads that have to do with sockets, sending and listening for data, and I'm stuck. Is there a way to do what I want with a minimum of trouble? I just need something that lets me open a connection to an IP address and a port, and start sending and receiving info. Thanks for your time, Michael Fritzius