Thank you for replying me.
I implemented the code, but I'm still receiving errors. Could you help me ? What isis my mistake?
Dim factory As New ProxyFactory()
Dim proxy As IProxyClient = factory.CreateProxy(ProxyType.Http, classRegrasDoNegocio.venderecoproxy, Integer.Parse(classRegrasDoNegocio.vportaproxy),
The error occurs here in this line \/
Dim socket As Socket = proxy.Connect("smtp.office365.com", Smtp.DefaultSSLPort)
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.