Great, It is work! Thank you!
I continue my program in order to send email by proxy
This is my code:
ProxyFactory factory = new ProxyFactory();
IProxyClient proxy = factory.CreateProxy(
ProxyType.Http, "proxy server address", port, "username", "password");
Socket socket = proxy.Connect("smtpserver", Smtp.DefaultPort);
using (Smtp smtp = new Smtp())
{
smtp.Attach(socket);
// ...
smtp.Close();
}
I get error in line: smtp.Attach(socket);
Error:
Tried to read a line. Only '' received. Please make sure that antivirus and firewall software are disabled or configured correctly.
I need to stop antivirus?? other idea?