Jump to content

J23

Members
  • Content Count

    29
  • Joined

  • Last visited

Posts posted by J23


  1. Thank you very much for your quick reply.

    12 hours ago, Remy Lebeau said:
    15 hours ago, J23 said:
    
    
    i tried to run @Geoffrey Smith gmailauthsmtp in my Delphi 2010 but failed.
    

    Failed how, exactly?

    I've corrected dotted unit names but I don't have REST.Authenticator.OAuth module.

    As I wrote before I've tried to install "MARS-master" REST library with no success.

     

    12 hours ago, Remy Lebeau said:

    You can either turn on 2-Factor Authentication

    In fact my problem is with Office365 mail, but I think is similar to Gmail.

    I've tried in my home Office365 trial account App-Specific password erlier and it works very well. But my University net admin did not allow 2-Factor Authentication.

    12 hours ago, Remy Lebeau said:

    install the latest Indy OAuth2 branch code..... and then you can use TIdHTTP to retrieve an access token from Google, and use TIdSASLXOAuth2 to use that token with TIdSMTP/TIdPOP3/TIdIMAP4.

    Yesterday I downloaded and installed the latest INDY package, but I didn't notice this version of Oath2. I've installed it today.

    I don't know if I can handle the next steps you described. I'm afraid this may not be easy.

    I will try.

    Thank you again,

    J23


  2. 1 hour ago, imperyal said:

    Not tested on Delphi 2010, but you can give it a try.

    Thank you very much for your quick reply. Unfortunately, there are many problems:

     

    1. {$HPPEMIT LINKUNIT}    - [DCC Error] U_DCS_OAuth2.pas(23): E1030 Invalid compiler directive: 'HPPEMIT'

    and uses:

    2.   Data.Bind.ObjectScope, - [DCC Fatal Error] U_DCS_OAuth2.pas(31): F1026 File not found: 'Data.Bind.ObjectScope.dcu'

    ...

    3. REST.Client,                     - [DCC Fatal Error] U_DCS_OAuth2.pas(33): F1026 File not found: 'REST.Client.dcu'

    and so on.

     

    J23


  3. Hello,
    i tried to run @Geoffrey Smith gmailauthsmtp in my Delphi 2010 but failed.
    I know that D2010 is a very outdated version. I don't have a REST library.
    I tried to install "MARS-master" 
    https://github.com/andrea-magni/MARS
    but it doesn't support versions older than Delphi XE.
    Maybe there is some way to enable OAuth2 in Delphi 2010?
    Thanks in advance for your advice.
    J23
     
×