Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi TIdIMAP - Connection problem (https://www.delphipraxis.net/136695-tidimap-connection-problem.html)

moelski 6. Jul 2009 10:28


TIdIMAP - Connection problem
 
Moin !

Ich versuche gerade eine IMAP Demo (Indy) zum laufen zu bekommen. Folgender Code wird genutzt:
Delphi-Quellcode:
        TheImap.Host    := Edit1.Text;
        TheImap.Username := Edit2.Text;
        TheImap.Password := Edit3.Text;
        TheImap.AuthType := atUserPass;
        TheImap.Connect(True);
        ListBox1.Clear;
        bRet := TheImap.ListMailBoxes(UsersFolders);
Aber beim letzten Befehl kommt das hier:

Zitat:

EIdConnectionStateError
Unable to execute command, wrong connection state;Current connection state: Non Authenticated.
TheImap.ConnectionState steht auf csNonAuthenticated.

Nun habe ich hier auch einen Codeschnippel gesehen:
http://newsgroups.archived.at/atozed...609275210.html

Dort steht:
Zitat:

// check of connectie ssl gebruikt
if TheImap.ConnectionState <> csNonAuthenticated then begin
Bedeutet das nun das meine Verbindung SSL benötigt?

Und wie muss ich den Code erweitern damit ich SSL nutzen kann?


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:22 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz