-
how do i connect to winsock?
here's my code..
Code:
Winsock1.RemoteHost = strServer
If strSrvPort = "" Then
Winsock1.RemotePort = 25
Else
Winsock1.RemotePort = Val(strSrvPort)
End If
Winsock1.Connect
this works fine if i set strserver to "mail.earthlink.net"
and if i'm connected to earthlink.net.. how do i know what system the user is using, like earthlink and set my strserver ? i don't want to ask the user and i would like to find this out at running time or design time...
help needed asap
-
If they already are using OE as their e-mail client, you could go into the registry and retrieve those values (just search for the location on your comp). Other than that...you would need user input...at least ask what isp they have and then add a mail. in from and .com at the end (that won't ALWAYS work).
Gl,
D!m
#400
-
so are you saying that if i set the winsock1.remotehost as some IP address , it'll work? mine doesnt..
-
Well i would assume that an e-mail server eventually resolves to an IP of the server that it's on. So it should work. I'm hoping someone else will come up with some input.
D!m