Autor Beitrag
o_O
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Di 03.01.06 20:32 
Hi ^^

Ich habe einen mini E-mail Client geschriebn ! Sozu sagen als Test für das richtige Projekt ^^
So nur habe ich ein Problem ! Ich will die E-mails abrufen und in einer Listbox eintragen lassen! Doch es passiert nichts ! Der E-mail Count ist auch immer 0 dabei kann ich verbinden ???

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
procedure TForm1.Button4Click(Sender: TObject);
Var Count,a:Integer;
begin
pop.Disconnect;
pop.Host := Edit7.Text;
pop.Username := Edit8.Text;
pop.Password := Edit9.Text;
pop.Connect;
Count := pop.CheckMessages;
Label13.Caption := IntToStr(Count);
ShowMessage(IntToStr(Count));
// Mails herunterladen
For a := a to Count do
begin
  pop.RetrieveHeader(a,Mail);
  ListBox1.Items.Add(Mail.From.Address)
end;

_________________
Hello World
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Di 03.01.06 23:50 
Kennst du das schon?
www.dsdt.info/tutorials/indy/?page=6

Edit: sorry, grad gesehen das du es schon kennst

Edit2:
Kann mir nur vorstellen das etwas beim Connecten nich funktioniert.
Zu welchem Host connectest du den?
Bei AOL müsste es imap.de.aol.com sein.
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Mi 04.01.06 00:20 
Wenn es einen Fehler beim Coicnnecten geben würde müsste doch eine Exception ausgelöst werden oda ? Naja ich bin bei 1und1 also pop.1und1.de ^^ und dann Passwort Port(freigeben) und Name das stimmt alles nur der Email counter bleibt imme rauf null obwohl ich E-mails draufhabe <-<
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mi 04.01.06 00:29 
Hab auf www.patshaping.de/hilfen_ta/pop3_smtp.htm folgendes gefunden.

1&1 DSL
Posteingangsserver: POP3: pop.1und1.de, IMAP: imap.1und1.de
Postausgangsserver: smtp.1und1.de
Benutzername: mxxxxxxx-yyyy (Paketnummer-Postfachkürzel)
Besonderheiten: Verwendet SMTP-Authentifizierung.

Weis nich obs dir weiter hilft.

Versuch mal mit dem Indy Demo Programm zu connecten.
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Mi 04.01.06 00:38 
hmm ich könnte auch mal versuchen das über imao zu machen ! Hat Indy dafür ne Komponente ?

thx


EDIT: Arr das Beispiel kann die dll IndyNet.dll nicht finden -.- was soll ich machen?
Fighter#1
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: Mi 04.01.06 18:39 
Bei mir klappts mit 1 und 1 auch nicht.
Liegt warscheinlich an den verschiedenen Mailboxen,
kannst dich ja mal ein bisschen umhören obs da ne Lösung
gibt!
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Mi 04.01.06 21:26 
Hmm komisch ^^ anscheinend gehts bei den 1und1 server nwt <_< schade ! Ich werds mal bei gmx oda so probieren ^^ vielleicht gehts da ^^ aber komisch mit Thunderbird gehts!