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

www.cryer.info
Managed Newsgroup Archive

tidSMTP Socket Error 10061 while sending e-mail

Subject:tidSMTP Socket Error 10061 while sending e-mail
Posted by:"Franz" (fandrea..@cosmag.it)
Date:Tue, 23 Jan 2007 19:16:03

Hello all
I receive a socket error 10061 just sending an e-mail from a program
compiled with Delphi 2006 and indy 10 This is the code:
  //setup SMTP
  SMTP.Host := MailHost
  SMTP.Port := 25;

  //setup mail message
  MailMessage.From.Address := FromAddress
  MailMessage.Recipients.EMailAddresses := edDestinatario.Text;;
  MailMessage.Subject := edOggetto.Text;
  MailMessage.Body.Text := meMessaggio.Text;
  //send mail
  try
    try
       SMTP.Disconnect;
       SMTP.Connect(SMTP.Host, 1000);
---- socket error
what's wrong?
thank you for helping me

Franz

Replies:

www.cryer.info
Managed Newsgroup Archive