IndySASLOAuth2 icon indicating copy to clipboard operation
IndySASLOAuth2 copied to clipboard

SMTP IndySASLOAuth2

Open vanillamasonry opened this issue 8 years ago • 4 comments

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

vanillamasonry avatar Mar 17 '16 19:03 vanillamasonry

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.

lordcrc avatar Mar 18 '16 13:03 lordcrc

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

vanillamasonry avatar Mar 18 '16 19:03 vanillamasonry

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.

lordcrc avatar Mar 20 '16 01:03 lordcrc

Yes, I know about GoogleAuthUtil but a cross platform solution will be the best!

vanillamasonry avatar Mar 21 '16 11:03 vanillamasonry