Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   ICS und Pop3 (https://www.delphipraxis.net/212471-ics-und-pop3.html)

Peter666 14. Feb 2023 19:04

ICS und Pop3
 
Hi,

hat jemand zufällig ein Beispiel wie man die TPop3Cli Klasse nutzt?

Ich gehe mal davon aus, dass ich so in etwa damit arbeite:

Delphi-Quellcode:
FPop3Cli:=TPop3Cli.create(self);
 FPop3Cli.Host := '';
 FPop3Cli.Port := '110';
 FPop3Cli.UserName := '';
 FPop3Cli.PassWord := '';
 FPop3Cli.OnResponse := DoResponse;
 FPop3Cli.Connect;
Im DoResponse Callback erhalte ich eine server ready Antwort. Was mache ich dann als nächstes?
FPop3Cli.MsgCount liefert bei mir immer 0.

Peter

mjustin 14. Feb 2023 19:47

AW: ICS und Pop3
 
MsgCount zeigt die Anzahl der Nachrichten an die auf dem Server zur Abholung bereitstehen.

Wenn man dann z.B. alle fünf Minuten erneut prüft, erhält man Werte > 0 wenn es neue Nachrichten gibt.

Anhand von Indy wird es hier die Verwendung von POP3 beschrieben: https://stackoverflow.com/q/8488633/80901

Bei ICS wird es ähnlich ablaufen.

TurboMagic 14. Feb 2023 20:30

AW: ICS und Pop3
 
Bei ICS sind doch normalerweise jede Menge Demos dabei...


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

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