Hi gang!

I'm in desperate need to get a winsock control in VB6 to conversate with a UNIX SMTP server. If I go with TCP protocol VB keeps bugging me about, "wrong protocol..." errors, but then again, to access a SMTP-server you gotta use TCP and not UDP, right?

Code example:

winsock1.connect "<insert SMPT-server here>",25
winsock1.SendData "HELO <[email protected]>"
winsock1.SendData "MAIL FROM:<[email protected]>"
winsock1.SendData "RCPT TO:<[email protected]>"
winsock1.SendData "DATA"
winsock1.SendData "<any string you like>"
winsock1.SendData "."
winsock1.SendData "QUIT"


Anyone's got any bright ideas?

/G