Autor Beitrag
Girgl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 281


D6 Enterprise
BeitragVerfasst: Fr 11.06.04 15:49 
Servus,
also ich will grad n kleines e-mail empfangsprogramm schreiben aber irgendwie hab ich probleme beim verbinden zu meim e-mail provider.
Ich geb e-mail adresse und passwort ein,und beim e-mail anbieter www.web.de
Als Port 25 aber dann kommt immer die Fehlermeldung connection closed gracefully.Hat jemand ne Ahnung,was daran falsch is?

Hier der Cod ezum verbinden
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
Pop.UserId:=PopUser;
 Pop.Password:=PopPasswort;
 Pop.Host:=PopServerName;
 Pop.Port:=PopPort;
 Pop.Connect;
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Sa 12.06.04 09:51 
Hallo, auf Port 25 arbeitet ein SMTP Server, also zum senden einer Mail. Zum Abholen brauchst du POP3, welcher sich auch Port 110 befindet. Wenn du eine Mail senden willst, brauchst du einen andere Komponente, z.b. TidSMTP.

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Girgl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 281


D6 Enterprise
BeitragVerfasst: Sa 12.06.04 11:58 
also ich habs jetz mit dem port probiert aber ich bekomm den gleichen fehler.Ich glaub eher,es liegt an irgendwelchen eingaben.
Also,als passwort is klar das ganz normale passwort,als Host geb ich web.de ein und als user einfach meine e-mail adresse ohne das @web.de
Muss ich des irgendwie anders schreiben oder warum connected der nie?

Edit:Also ich hab grad mal im event onConnected mir einfach mal ne nachricht ausgeben lassen.Bedeutet das jetz dass er doch schon connected is oder wann tritt onConnected ein?
Wenn ich aber doch schon connected bin,dann kann ich nix machen bis die fehlermeldung kommt.


Hoff es kann wer helfen,ist wichtig !
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Sa 12.06.04 12:16 
Schreib mal statt der Domain web.de den POP3-Server rein. (= pop.web.de)

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Girgl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 281


D6 Enterprise
BeitragVerfasst: Sa 12.06.04 12:23 
besten dank,jetz dürfts gehen