> I was looking at TSMTPSend.Login and came to the realization that
> result is not being set to "false" if the login fails. Shouldn't there
> be some sort of "result := FAuthDone;" line towards the bottom of that
> function? FAuthDone is set by calling AuthCram and, if needed,
> AuthLogin, but "result" is never set.

SMTP session can be anonymous or authorized. If authorization failed, 
then you are still in anonymous session and you can continue in SMTP 
session! So, result of Login method is true, even athorization 
failed. It is OK.

When you wish to check if you are in authorized or in anonymous 
state, check AuthDone property instead.


-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to