Thaer Level: Guest

|
Winsock is not sending data properly
Hey !
I made this littel program to connect to SMTP servers, when I connect to mx2.hotmail.com:25, it connects and the server replys saying :
" 220 mc10-f2.hotmail.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.6824 ready at Tue, 17 Aug 2004 05:37:03 -0700 "
But when I send the " HELO mx2.hotmail.com " message the server doesn't reply !
This is the code :
Private Sub cmdClose_Click()
wsk.Close
End Sub
Private Sub cmdConnect_Click()
wsk.Close
wsk.Connect txtIP, txtPort
End Sub
Private Sub Command1_Click()
wsk.SendData txtData.Text
End Sub
Private Sub Timer1_Timer()
txtState = wsk.State
End Sub
Private Sub wsk_DataArrival(ByVal bytesTotal As Long)
Dim abc As String
wsk.GetData abc
txtR = abc
End Sub
I'll be thankful if anyone could help...
Take care...
|