Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jan : Re: tidSMTP Socket Error 10061 while sending e-mail

www.cryer.info
Managed Newsgroup Archive

Re: tidSMTP Socket Error 10061 while sending e-mail

Subject:Re: tidSMTP Socket Error 10061 while sending e-mail
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 23 Jan 2007 12:44:00

"Franz" <fandreani@cosmag.it> wrote in message
news:45b65048$1@newsgroups.borland.com...

> I receive a socket error 10061 just sending an e-mail from a program
> compiled with Delphi 2006 and indy 10

10061 means that you are either 1) trying to connect to a host that
does not have a server running on the specific port at all, or 2) the
server is running but has too many pending client connections and
cannot accept anymore at that time.  For #1, all you can do is verify
your settings.  For #2, there is nothing you can do other than to try
reconnecting at a later time.

>        SMTP.Connect(SMTP.Host, 1000);

That is not the correct way to use Connect().  Get rid of the
parameters so that it uses the Host and Port properties correctly:

    SMTP.Connect();

Besides, you are not using the same value that you assigned to the
Port property anyway, which is the root cause of your error.  There is
no server running on port 1000.  The second parameter is a Port value,
not a Timeout value.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive