Results 1 to 4 of 4

Thread: hard questions for gurus

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Ca
    Posts
    106
    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

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Ca
    Posts
    106
    so are you saying that if i set the winsock1.remotehost as some IP address , it'll work? mine doesnt..

  4. #4
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width