Based on your description I have no idea what you're doing. What do emails have to do with HTTP requests here?
Typically a Connection Cannot be established that points to a connection issue - most likely the firewall or AV is blocking you from using IP connections. To check turn off hte firewall and try again - if it works that's your issue. If does, turn the firewall back on and explicitly give access to your application to use port 80/443 or whatever other ports you are using.
If it isn't - then you need to provide more info since the below has 0 information on what you're actually doing.
+++ Rick ---
>Hi all
>
>
>Have an application that gathers up emails to be sent out to clients and it works (mostly) on 7 servers, but when it hits #8 it horks up with an "A Connection with the server could not be established" coming from this code
>
>lnRetval = HttpSendRequest(hHTTPResult,;
> tcHeaders, len(tcheaders),;
> lcPostBuffer, TnPostSize)
>
>If lnRetval = 0
> This.nerror= GetLastError()
> This.cerrormsg=This.getsystemerrormsg()
> =InternetCloseHandle(hHTTPResult)
> Return This.nerror
>endif
>
>
>My Google-fu points to an IIS issue - but this works fine from my local HD. Not so much from the server.
>
>Has anyone seen this, and if so, how did you fix it?