| View previous topic :: View next topic |
| Author |
Message |
benny Guest
|
Posted: Thu Feb 19, 2004 4:36 am Post subject: did the indy9 support authentication type of CRAM-MD5 ? |
|
|
Hi,
I wrote the following code, but it give me error in terms of:
exception class : EIdProtocolReplyError
exception message : failed authentication ...
Ismtp1.Host := CSB_MAIL_HOST;
Ismtp1.Username := CSB_MAIL_USERNAME;
Ismtp1.Password := CSB_MAIL_PASSWORD;
Ismtp1.Connect;
if Ismtp1.AuthSchemesSupported.IndexOf('LOGIN')>-1 then
begin
** Memo1.Lines.Add(Mail.AuthSchemesSupported.Text);
Ismtp1.AuthenticationType := atLogin;
Ismtp1.Authenticate;
end;
** this line I try to capture the AuthSchemesSupported Type on my mail
server then I found that it belongs to CRAM-MD5....
Is this the problem why I couldn't reach the authenticate level before
sending out any mail ??
Thanks In advance.
Regards,
benny
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Feb 19, 2004 6:22 am Post subject: Re: did the indy9 support authentication type of CRAM-MD5 ? |
|
|
"benny" <benny (AT) chrysanth (DOT) com> wrote
| Quote: | Is this the problem why I couldn't reach the
authenticate level before sending out any mail ??
|
TIdSMTP only supports basic Username/Password authentication, nothing more.
In other words, MD5 is not supported. If you need that, then you will have
to implement it yourself by deriving a new class from TIdSMTP and overriding
the virtual Authenticate() and IsAuthProtocolAvailable() methods to send the
appropriate authentication commands.
Gambit
|
|
| Back to top |
|
 |
Chad Z. Hower aka Kudzu Guest
|
Posted: Thu Feb 19, 2004 7:30 am Post subject: Re: did the indy9 support authentication type of CRAM-MD5 ? |
|
|
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote in
news:40345445$1 (AT) newsgroups (DOT) borland.com:
| Quote: | TIdSMTP only supports basic Username/Password authentication, nothing
more. In other words, MD5 is not supported. If you need that, then you
|
Are you sure? We have a CRAM MD5 unit. In fact it was just ported to .net...
and JP has added tons of auth types to SMTP... Im quite sure we DO support
it.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Want to keep up to date with Indy?
Join Indy News - it free!
http://www.atozed.com/indy/news/
|
|
| Back to top |
|
 |
Chad Z. Hower aka Kudzu Guest
|
Posted: Thu Feb 19, 2004 7:31 am Post subject: Re: did the indy9 support authentication type of CRAM-MD5 ? |
|
|
Aah--- I think it might be Indy 10 only though.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Got Indy? Got the book?
http://www.atozed.com/indy/book/
|
|
| Back to top |
|
 |
J. Peter Mugaas Guest
|
Posted: Sat Feb 21, 2004 7:14 pm Post subject: Re: did the indy9 support authentication type of CRAM-MD5 ? |
|
|
On Thu, 19 Feb 2004 09:30:57 +0200, Chad Z. Hower aka Kudzu wrote:
| Quote: | "Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote in
news:40345445$1 (AT) newsgroups (DOT) borland.com:
TIdSMTP only supports basic Username/Password authentication, nothing
more. In other words, MD5 is not supported. If you need that, then you
Are you sure? We have a CRAM MD5 unit. In fact it was just ported to .net...
and JP has added tons of auth types to SMTP... Im quite sure we DO support
it.
|
It's only in Indy 10. Indy 9.0 does not have Indy 10's extensive SASL
framework which would permit a developer to support MD5-CRAM.
--
J. Peter Mugaas - Indy Pit Crew
Internet Direct (Indy) Website - http://www.nevrona.com/Indy
Personal Home Page - http://www.wvnet.edu/~oma00215
If I want to do business with you, I will contact you. Otherwise, do not
contact me.
|
|
| Back to top |
|
 |
|