Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: idSMTP logon not working
| Subject: | Re: idSMTP logon not working |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Mon, 26 Jun 2006 10:55:53 |
"RGreen" <RGreen@nospam.kemi.umu.se> wrote in message
news:449f98f2$1@newsgroups.borland.com...
> I have a program that sends mail using the SMTP component from
> Indy. The program worked fine when I compiled and used it with D7.
> Now I have succesfully recompiled the program with D2006. The
> program works still fine, but if the server needs authentication, the
> program cannot anymore send the mail. I get the error: Server
> needs authentication.
So what is the actual problem? Sounds like it is doing what it is supposed
to be doing. You didn't provide the proper authentication information, so
the server failed the operation, which TIdSMTP then reported to your code to
handle. So, just provide the kind of authentication that the server is
actually expecting.
> Is the idSMTP.AuthType:= atDefault; broken in the D2006 version of indy?
No. However, atDefault sends the AUTH LOGIN command, but only if the server
supports that kind of authentication to begin with. Many servers do not
support it anymore because it is not secure. So you need to verify what the
server actually supports. What values are contained in the Capabilities
property after you are connected to the server?
Gambit