Z
Zach Flynn
Ok, so I'm programming in Unix if that makes any difference. And I'm
doing:
system("telnet somehost.com 25");
But I can't figure out how to send a command to it. Like, for example,
I would like to send the helo command to the smpt port with this telnet
open. Does anyone here know how to? Thanks.
(kinda desired output)
# ./program
Telnetting...
helo
250 welcome.
mail from: (e-mail address removed)
250 ok.
etc...I think you get the idea that I would like to this inside my C
program.
-Zach
doing:
system("telnet somehost.com 25");
But I can't figure out how to send a command to it. Like, for example,
I would like to send the helo command to the smpt port with this telnet
open. Does anyone here know how to? Thanks.
(kinda desired output)
# ./program
Telnetting...
helo
250 welcome.
mail from: (e-mail address removed)
250 ok.
etc...I think you get the idea that I would like to this inside my C
program.
-Zach