| View previous topic :: View next topic |
| Author |
Message |
RGreen Guest
|
Posted: Fri Aug 25, 2006 5:49 pm Post subject: TidSMTP and atDefault |
|
|
Using Indy 10 in Delphi 2006.
The code
SMTP.AuthType:= atDefault; // I don't support SSL
SMTP.Username:= 'Some id'
SMTP.Password:= 'Some password';
SMTP.Connect();
SMTP.Send();
Gives an error. The client cannot authentify with the server. The same code
worked in eraly versions of indy (SMTP.AuthType = atLogin) with the same
server. |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Aug 25, 2006 9:50 pm Post subject: Re: TidSMTP and atDefault |
|
|
"RGreen" <RGreen (AT) nospam (DOT) kemi.umu.se> wrote in message
news:44eef1e1$1 (AT) newsgroups (DOT) borland.com...
| Quote: | The code
SMTP.AuthType:= atDefault; // I don't support SSL
SMTP.Username:= 'Some id'
SMTP.Password:= 'Some password';
SMTP.Connect();
SMTP.Send();
Gives an error.
|
Please be more specific. What EXACTLY are you having a problem with?
Gambit |
|
| Back to top |
|
 |
RGreen Guest
|
Posted: Tue Aug 29, 2006 2:24 pm Post subject: Re: TidSMTP and atDefault |
|
|
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:44ef2c55$3 (AT) newsgroups (DOT) borland.com...
| Quote: |
Please be more specific. What EXACTLY are you having a problem with?
|
Sigh,..... Well, let me explain it VERY detailed to you ***************once
more*****************...
1) Supose you have a server that works great with every mail application.
2) The server uses SMTP with simple (plain) authentication (AUTH)
3) A program created using Indy 9 OR early Indy 10 versions worked
pöerfectly with that server.
4) Using Indy 9 the code (simplified)
SMTP.AuthType:= atLogin;
SMTP.Username:= 'Some id'
SMTP.Password:= 'Some password';
SMTP.Connect();
SMTP.Send();
Worked like a charm with THAT server
Using early indy 10 the code
SMTP.AuthType:= atDefault; // This have changed
SMTP.Username:= 'Some id'
SMTP.Password:= 'Some password';
SMTP.Connect();
SMTP.Send();
Worked perfectly fine as well WITH THE SAME SERVER.
But the version of indy that comes bubded with Delphi 2006 is broken. The
same code
SMTP.AuthType:= atDefault;
SMTP.Username:= 'Some id'
SMTP.Password:= 'Some password';
SMTP.Connect();
SMTP.Send();
Doesn't work with THAT SAME SERVER because it seems that it doesn't send the
AUTH command. The response of the server is Incorrect authentication
data.And yes, this is the same code. If I recompile it with the ols indy it
works. WITH the same server. |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Aug 29, 2006 9:51 pm Post subject: Re: TidSMTP and atDefault |
|
|
"RGreen" <RGreen (AT) nospam (DOT) kemi.umu.se> wrote in message
news:44f407bb (AT) newsgroups (DOT) borland.com...
| Quote: | Well, let me explain it VERY detailed to you once more...
|
You did not explain it clearly last time. All you said was that you had an
error, but no details about what error you were actually getting, or on what
line it was occuring on.
| Quote: | it seems that it doesn't send the AUTH command.
|
The only way that atDefault would not send an AUTH LOGIN command is if the
server did not include LOGIN in its list of supported AUTH types in the
response to the EHLO command. atDefault will not send an AUTH LOGIN command
if the server does not indicate that the LOGIN authentication is actually
supported. AUTH LOGIN is an unsecure authentication anyway. Most servers
strongly prefer actual encryption nowadays, and thus do not implement AUTH
LOGIN anymore, or at least strongly discourage it.
Gambit |
|
| Back to top |
|
 |
|