about indy 9 maildemo

Giganews Newsgroups
Subject: about indy 9 maildemo
Posted by:  keith (suppo…@borlandbbs.cn)
Date: Mon, 17 Jul 2006

Hi, sirs,

I am testing indy 9 mail demo, I can receive mails now, but failed with
sending new msg, I got an error msg 'Socket error #10053 software caused
connection abort'.

I tried but not figure out what is the problem, hope you could help me out.

the key codes from the demo:
...
{authentication settings}
  case main.SmtpAuthType of
      0: SMTP.AuthenticationType := atNone;
      1: SMTP.AuthenticationType := atLogin; {Simple Login}
    //SMTP.AuthenticationType := atLogin; {Simple Login}

  end;
  SMTP.Username := SmtpServerUser;
  SMTP.Password := SmtpServerPassword;

  {General setup}
  SMTP.Host := SmtpServerName;
  SMTP.Port := SmtpServerPort;

  {now we send the message}
    SMTP.Connect;
  try
      SMTP.Send(IdMsgSend);
  finally
      SMTP.Disconnect;
  end;
end;
...

I guess sending may need authentication, so I select Simple login.

Thank you in advance.

Replies