I am trying to make a function in C that executes Telnet and passes parameters to telnet to have it send an email.
I know what commands to send to telnet, but I don't know how to pass commands to Telnet.
Does anyone know how I would go about passing commands to Telnet from a C function?
thx