Autor Beitrag
rolandt4088
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

WINDOWS XP
Delphi 7, CodeGear RAD Studio
BeitragVerfasst: Mi 04.07.07 18:19 
Hallo,
ich suche jetzt schon einige Zeit nach einer Lösung die mir nach dem Befehl: Senden, eine Meldung anzeigt ob des Senden erfolgreich war.
Folgenden Code benutze ich derzeit. Ist eine schlecht Lösung und bringt im Grunde nichts.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure ....
begin 
 {...}
  try
   IdSMTP.Send(IdMessage);//Nachrich senden
    finally
     idsmtp.Disconnect;
     idpop3.Disconnect;
     end;
    end;
   messagedlg('Mail wurde gesendet', mtConfirmation, [mbok], 0);
end;

Hat jemand eine Idee?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 04.07.07 18:50 
Das SMTP-Protokoll sieht nur für den direkten Versan Statusmeldungen vor, die kennzeichnen, ob das Übertragen zum SMTP-Server erfolgreich war. Ob die Ausleiferung erfolgreich war, ist vom SMTP-Protokoll nicht vorgesehen. Auch mit dem POP3-Protokoll gibt es hierfür keine verlässliche Möglichkeit.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
rolandt4088 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

WINDOWS XP
Delphi 7, CodeGear RAD Studio
BeitragVerfasst: Mi 04.07.07 20:36 
Danke für diese Information

Gruß
Roland