PDA

Click to See Complete Forum and Search --> : winsock wont login


donW
Jul 12th, 2001, 01:09 AM
i am using winsock to connect to an ISP and sending email from VB6.
Winsock logs into one ISP & sends email OK, but not others. I get a 'connection forcefully terminated' message back from winsock after the .connect, from one ISP and just a logoff from another ISP.

I am doing all the standard stuff:

with winsock1
.localport =0
.protocol = sckTCPProtocol
.remotehost = "blaablaa.net.nz"
.remoteport =25
.connect

then wait for response of 220
then .senddata , etc




Anyone with Any ideas?

sunnyl
Jul 12th, 2001, 02:45 AM
Some ISPs require you to be logged on to their network to access their mail servers.

JoshT
Jul 12th, 2001, 06:31 AM
Yeah, they check your IP address. It's so their mail servers can't be used to relay spam.

donW
Jul 12th, 2001, 06:54 AM
yes I have already logged into the ISP using my email account name/password.
I can mess up the hostname and get a 'host not found' error message, so I am close to connecting to the mail server....