You can feed a telnet prompt a file taht it will read commands from... or.....

COM object used to telnet to a pop3 account

you can find the DLL here, http://www.dimac.net go to free downloads, and download the w3Sockets

Bryce