socket error #11004

Giganews Newsgroups
Subject: socket error #11004
Posted by:  keith (suppo…@borlandbbs.cn)
Date: Thu, 21 Sep 2006

My idsmtp can not connect to smtp.sina.com.cn, error: socket error #11004

...

with Msg do
begin
  From.Text:='yang_jing_…@sina.com';
  Recipients.EMailAddresses:='jingbi…@yahoo.com.cn';
  Subject:='subject';
  Body.Text:='idSMTP testing'
end;

with Mail do
  begin
  Host:='smtp.sina.com.cn';
  UserName:='yang_jing_ll';
  Password:='****';
  AuthenticationType := atLogin;
  Port := 25;

  Connect();    //here connection failed.

try
  if not Authenticate then Exit
  Send(Msg);
  showmessage('send');
  finally
  Disconnect;
end;

Env: xp+D7+Indy components.

Thank you in advance.

Replies