Re: TidSMTP And Socks5

Giganews Newsgroups
Subject: Re: TidSMTP And Socks5
Posted by:  Alexandre (alexandrepires20…@yahoo.com.br)
Date: Fri, 22 Jan 2010

Remy, some idea ? I need to send email through proxy using Socks5
How to do this with TidSMTP=20
I tried it, but it did not work:

  SMTP.Username :=3D myUserName;
  SMTP.Password :=3D myPassWord;

  SMTP.Host :=3D MyHost;

  SMTP.Port :=3D 25;

  SocksInfo :=3D TIdSocksInfo.Create(SMTP.Socket);
  SocksInfo.Host :=3D MyProxyHost;

  SocksInfo.Port :=3D MyProxyPort;
  SocksInfo.Authentication :=3D saNoAuthentication;
  SocksInfo.Version :=3D svSocks5;

  SMTP.Socket.TransparentProxy:=3DSocksInfo;
  SMTP.Connect;
  SMTP.Send(IdMsgSend);
  SMTP.Disconnect;

  "Alexandre" <alexandrepires20…@yahoo.com.br> escreveu na mensagem =
news:D3728DCC80A0E340alexandrepires20…@yahoo.com.br...
  Remy,=20

  How to do TidSMTP works through socks proxies ? (Socks5)

Replies

In response to

TidSMTP And Socks5 posted by Alexandre on Sun, 17 Jan 2010