|
-
Sep 13th, 2000, 03:38 PM
#1
Thread Starter
Lively Member
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
-
Sep 13th, 2000, 05:20 PM
#2
Fanatic Member
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
-
Sep 13th, 2000, 06:29 PM
#3
Thread Starter
Lively Member
so are you saying that if i set the winsock1.remotehost as some IP address , it'll work? mine doesnt..
-
Sep 13th, 2000, 11:00 PM
#4
Fanatic Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|