Automated/scripted Telnet Session using built-in windows telnet.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I basically want to send a preformatted email using telnet. I can do this
using the builtin windows telnet and manually typing in each command. However
I can not seem to find a way to automate the telnet session. I just want it
to follow a relatively rigid smtp send-email operation but the built-in
windows telnet doesn't appear to have the ability to be run in any automated
fashion. I realize that there are probably other Telnet softwares out there
that can automate things, however I'm looking to deploy this to multiple
users - and I don't want them to have to install any custom software just to
do a simple email-send operation. I was trying to take advantage of winsock
activex control or something, but contrary to what I was originally lead to
believe, it isn't a default windows control.

In short, does anyone know of anyway to... via commandline, issue an smtp
send-email command in some sort of automated way? I was hoping to just pass
some commandline variables to the telnet.exe but it doesn't appear to support
any such extended arguments.

Thanks for reading.
 
Have a look-around for Teraterm. It's an ancient 16-bit telnet program, but
has a good script ing language. I still use it to autoconfig routers
occasionally.

I think you could also do this using the sockets commands of the latest
AutoIt release. More flexible but possibly more groundwork.
 
Will do - thanks very much for the reply and suggestion. Unfortunately these
I assume are not available to users unless they install it which is the main
thing I'm trying to avoid. It looks though that I may not have a choice
though ;/
 
Back
Top