We help IT Professionals succeed at work.

Access Pop3 gmail server from a Delphi XE2 application

LeTay
LeTay asked
on
173 Views
Last Modified: 2018-12-17
I try to access a gmail account to read and process incoming emails in Delphi XE2
I activated OPO3 for the gmail account
My code is like this :

begin
  SSL := TIdSSLIOHandlerSocketOpenSSL.Create(Application);
  Pop3 := TIDPop3.Create(Application);
  with Pop3 do
    begin
      AuthType  := patSASL;
      Host      := 'pop.gmail.com';
      UserName  := 'username@gmail.com';
      Password  := 'theusernamepassword';
      Port      := 995;
      IOHandler := SSL;
      UseTLS    := utUseImplicitTLS;
      Connect;
    end;
end;

On the Connect call, I get error EidSASLMechNeed with text (I translate it from french) : SASL mechanism needed for the connection
I have the needed libraries libeay32.dll and ssleay32.dll (dated december 201)

Any idea what is wrong ?
Comment
Watch Question

Software architect
CERTIFIED EXPERT
Top Expert 2012
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Well I am an expert at all in that area
An example to access gmail server with POP should be helpful for me

Author

Commented:
Looks like the third is the good one : https://forums.embarcadero.com/message.jspa?messageID=651939
Will test is now !
Sinisa VukSoftware architect
CERTIFIED EXPERT
Top Expert 2012

Commented:
Remy = Indy :-)  So, best person to help. Not much here on EE thought....
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.