Previous Thread
Next Thread
Print Thread
Rate Thread
#17583 12/16/03 10:05 PM
Joined: Jun 2003
Posts: 6
4
4c3
Offline
Junior Member
Junior Member
4 Offline
Joined: Jun 2003
Posts: 6
I know how to mail with telnet (=easy) and I know how to open telnet with VB (via .bat). The problem is I can't put my telnet commands that are in the VB source into the telnet session. Some ideas?

Sponsored Links
▼ Sponsored Links ▼ ▲ Sponsored Links ▲
#17584 12/16/03 10:22 PM
Joined: Apr 2002
Posts: 135
? Offline
UGN Member
?
UGN Member
Joined: Apr 2002
Posts: 135
I'm not sure how familiar you are with telnet but htere is a lot of control code that is sent by the client to the server that has nothing to do with the commands. You can't just send commands without the control code. You should either read the telnet IRFC or try to find a telnet API for VB which would simplify a telnet session.

But I think you just want to call the telnet program and inject commands into it, rite? I'm not really too sure about that since I mostly work with Perl, which would be the perfect language for this.


I KNOW EVERYTHING. ASK ME.
#17585 12/16/03 10:51 PM
Joined: Mar 2002
Posts: 185
M
Member
Member
M Offline
Joined: Mar 2002
Posts: 185
Well, seems to me like you want to send emails via VB right? Even if you don't, this'll still work. Telnet is basically a program that you use to connect to an open port and it just passes raw data back and forth, well, why not just do this in VB? Instead of opening up telnet and sending commands through that, just connect, using winsock, to the server you want to connect to and then send the raw data over the connect urself with VB. You can do anything that you can do in Telnet that way, with any server, because you can just send data like telnet does in VB, so do that, it's faster, more efficient and easier, so read about winsock and any protocols you want to use.


Cha want some w***up?

http://www.dopeskill.com
#17586 12/23/03 06:38 AM
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
Go with Mornse's plan. As for you mr question mark damienak man... telnet control codes only apply to telnet servers. Not mail servers.


Domain Registration, Hosting, Management
http://www.dollardns.net
#17587 04/30/04 08:40 AM
Joined: Apr 2004
Posts: 34
N
Junior Member
Junior Member
N Offline
Joined: Apr 2004
Posts: 34
you can use the telnet protocol with the winsock component. use that. i needed email support in one of my programs, so, I just hard coded it smile there's plenty of info on the net on how to use winsock compenent in vb.


Link Copied to Clipboard
Member Spotlight
None yet
Forum Statistics
Forums41
Topics33,840
Posts68,858
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Girlie 1
unreal 1
Crime 1
Ice 1
Powered by UBB.threads™ PHP Forum Software 8.0.0