IndySASLOAuth2
IndySASLOAuth2 copied to clipboard
SMTP IndySASLOAuth2
Hello Asbjørn,
I am new with IMAP, SMTP clients. I am wondering if your IndySASLOAuth2 will work also with the IdSMTP. If yes, then do you have any example how to use this unit with the SMTP client (I try to use it to access gmail SMTP)? On the other hand I have checked the latest Indy IMAP4 source and now instead of AClient.GetInternalResponse('', [], True); that you have changed with AClient.GetInternalResponse(AClient.LastCmdCounter, [''], False); (http://embarcadero.newsgroups.archived.at/public.delphi.internet.winsock/201408/1408299477.html) is: AClient.GetInternalResponse(AClient.LastCmdCounter, [], True); - probably changed by Remy
Do you think that the patch is still necessary?
Thank you in advance, Pavel
I think it should be usable with SMTP as well, but I haven't tried. I can have a look tomorrow.
As for IMAP4, I do believe the bug has been fixed, but I'll check it out too, will get back to you.
Dear Asbjørn,
First of all I want to thank you for your prompt response. TSASLXOAuth2 is available only for windows. For Android some changes must be made. ex: Add conditional compiling for unit REST.Authenticator.OAuth.WebForm.Fmx. More than that, OnAuthWebFormTitleChanged will not be triggered! http://stackoverflow.com/questions/32578374/cant-get-authentication-code
Thank you, Pavel
For Android it seems GoogleAuthUtil would be best suited rather than Delphi's OAuth stuff. However I have no experience with Delphi on Android (nor anything else on mobile for that matter), so not sure how difficult it would be to integrate. I saw there's a "Java2Op" utility for porting Java classes, but yeah, no idea if it'll work or be useful.
I'll get back to you on the SMTP tomorrow.
Yes, I know about GoogleAuthUtil but a cross platform solution will be the best!