C Function Telnet Email
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?
If you're using *NIX there are some functions that will send an email for you. I don't know if that's what you're looking for or not.
I don't know what *NIX is. But I know that from the command prompt I can use Telnet to send an email. Shouldn't I be able to execute Telnet from a C function and pass it the commands to send an email --- just by passing it the same commands that I give it when I use it from the command prompt????
*NIX means Linux or UNIX or some variation. If you don't know what it is, you're probably using Windows. :)
If you want to execute a DOS command, you an use system("command arg1 arg2 arg3"), or better yet, read the FAQ.