Uh, use the telnet commands, like this:

Open a shell or DOS box.

Then type: telnet drill.hackers.org 25 (or whatever port you need)
Then use the "helo" command or whatever.
Go here for...