Thank you for replying me.
I implemented the code, but I'm still receiving errors. Could you help me ? What isis my mistake?
The Code
Dim factory As New ProxyFactory()
Dim proxy As IProxyClient = factory.CreateProxy(ProxyType.Http, classRegrasDoNegocio.venderecoproxy, Integer.Parse(classRegrasDoNegocio.vportaproxy),
classRegrasDoNegocio.vusuarioproxy, classRegrasDoNegocio.vsenhaproxy)
The error occurs here in this line \/
Dim socket As Socket = proxy.Connect("smtp.office365.com", Smtp.DefaultSSLPort)
client.AttachSSL(socket, "smtp.office365.com")
client.StartTLS()
The error:
Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
I already tested removing the Proxy and in this case, there is no error.
Att,