Autor Beitrag
lord.paddington
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76



BeitragVerfasst: Di 13.02.07 07:42 
Hallo!

Möchte eine Mail auf Knopfdruck abschießen.
Leider wird der Vorgang per Fehlermeldung 'Host Lookup failed' abgebrochen.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
procedure TForm6.Button1Click(Sender: TObject);
begin
  NMSMTP1.Host := 'mail.gmx.net';
  NMSMTP1.UserID := 'xxxx.xxxx@gmx.net';
  NMSMTP1.Connect; //hier kommt Fehlermeldung 'Host Lookup failed'
  showmessage('SMTP Server connected');
  NMSMTP1.PostMessage.FromAddress := 'Automatikmail';
  NMSMTP1.PostMessage.ToAddress.Text := 'yyy.zzzz.@gmx.net';
  NMSMTP1.PostMessage.Body.Text := 'blablabla';
  NMSMTP1.PostMessage.Subject := 'blablabla';
  NMSMTP1.SendMail;
  showmessage('mail wurde gesendet');
end;


Wie kann das sein???

Gruß Eure Lordschaft

_________________
pfutsch ist hin und hin ist pfutsch
lord.paddington Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76



BeitragVerfasst: Di 13.02.07 16:10 
Hallo!

Quellcode stimmt!
Der Virenscanner blockierte den smtp - Server!


Gruß Eure Lorschaft

_________________
pfutsch ist hin und hin ist pfutsch