Autor Beitrag
BerTeL
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Windowx XP
Delphi 7 Enterprise
BeitragVerfasst: So 12.11.06 21:32 
Guten Tag
Ich hab ein problem:
Ich will eine E-mail mit Smtp senden aber ich krieg das nicht so hin.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
procedure TForm1.Button1Click(Sender: TObject);
var msg : TIdmessage;
begin
msg := Tidmessage.Create(self);
msg.sender.Text := 'y.bertel@hotmail.com';
msg.sender.Name := 'bertel';
msg.Sender.DisplayName := 'lalala';
msg.Recipients.EMailAddresses := 'y.bertel@hotmail.com';
msg.Body.Add('hallo');

test.Host := 'mail.hotmail.com';
test.Username := 'y.bertel@hotmail.com';
test.Password := 'xmeinpasswortx';
test.Connect();

try
test.Send(msg);
  except
    Showmessage(test.LastCmdResult.TextCode +' - ' + test.LastCmdResult.Text.Text);
    end;
    test.Disconnect;




end;



Das habe ich aus diesem forum aber irgendwie geht das nciht. Pasiert kurze zeit nichts und dann kommt eine fehlermeldung: Zeitüberschreitung bei verbindung.

Könnt ihr mir helfen?


Zuletzt bearbeitet von BerTeL am So 12.11.06 23:11, insgesamt 1-mal bearbeitet
BerTeL Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Windowx XP
Delphi 7 Enterprise
BeitragVerfasst: So 12.11.06 22:20 
Mitlerweile kommt keine fehlermeldung mehr aber E-mail kommt auch keine :(

Helft mir bitte ... was mache ich falsch?
BerTeL Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 45

Windowx XP
Delphi 7 Enterprise
BeitragVerfasst: So 12.11.06 23:16 
Ich schon wieder:
Ich habe mal den anbieter gewechselt (zu gmx):
Folgende fehlermeldung:
550 - 5.1.7 This server does not accept an empty envelope from (www.gmx.net/serverrules ) {mp025}

Weiß jemand was das heißt?
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Fr 24.11.06 12:29 
Hallo,

evtl. musst du den Betreff (Subject) setzen.

Cu,
UDontknow