Autor Beitrag
Matthias-K
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271

Win95, Win98, Win2000, WinXP, Linux
D2, D4 Client/Server, D5 Enterprise, D6 Enterprise, D7 Enterprise, Delphi2005, C/C++ 3.0, C/C ++ 5.0, C/C++ 6.0
BeitragVerfasst: Mi 07.12.05 17:04 
hi leutz!

folgendes führe ich aus:
ausblenden volle Höhe 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:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
procedure TForm1.Button1Click(Sender: TObject);
begin
  if edit2.text = '' then
  begin
    showmessage('Nummer eingeben...');
    exit;
  end;

  nachricht := edit2.text + ' # ' + edit1.text;

  SMTP.Username := '*********';
  SMTP.Password := '******';
  msg.Body.Add('sfdksdjfskdfhjkj skhdfksfdh skdjhfskjdfjh ksdjhfskjdfkjsdf');
  msg.From.Address := '***************';

  SMTP.Host := '*******************';
  SMTP.Port := 25;

  SMTP.Connect;

  smtp.Sendmsg(msg);
end;

procedure TForm1.SMTPStatus(ASender: TObject; const AStatus: TIdStatus;
  const AStatusText: String);
begin
  memo1.Lines.add(astatustext);
end;

procedure TForm1.SMTPWorkBegin(ASender: TObject; AWorkMode: TWorkMode;
  AWorkCountMax: Integer);
begin
  memo1.lines.add('work begin');
end;

procedure TForm1.SMTPWorkEnd(ASender: TObject; AWorkMode: TWorkMode);
begin
  memo1.lines.add('work end');
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  smtp.Disconnect(false);
end;


im memo steht folgendes:
Zitat:
Resolving hostname *****************.
Connecting to *****************.
Connected.
work begin
Encoding text
work end
Disconnecting.
Disconnected.

allerdings kommt nie eine email an dem konto an! was läuft da falsch?


mfg matthias

Moderiert von user profile iconTino: Quote-Tags eingefügt.
Moderiert von user profile iconTino: Titel erweitert.

_________________
Ein Spezialist ist ein Mensch, der immer mehr von immer weniger weis, bis er alles von nichts weis!
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mi 07.12.05 17:39 
Ich finde keine Empfängerangabe... wo soll die Mail denn hin? :)

_________________
Bravery calls my name in the sound of the wind in the night...
Matthias-K Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271

Win95, Win98, Win2000, WinXP, Linux
D2, D4 Client/Server, D5 Enterprise, D6 Enterprise, D7 Enterprise, Delphi2005, C/C++ 3.0, C/C ++ 5.0, C/C++ 6.0
BeitragVerfasst: Mi 07.12.05 17:43 
das ist ein argument!

nu klappts.

thx!

matthias

_________________
Ein Spezialist ist ein Mensch, der immer mehr von immer weniger weis, bis er alles von nichts weis!
Matthias-K Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271

Win95, Win98, Win2000, WinXP, Linux
D2, D4 Client/Server, D5 Enterprise, D6 Enterprise, D7 Enterprise, Delphi2005, C/C++ 3.0, C/C ++ 5.0, C/C++ 6.0
BeitragVerfasst: Mi 07.12.05 17:49 
allerdings hab ich ein problem:

in der mail stehen zig unnütze infos! wie bekomm ich die da raus?

matthias

_________________
Ein Spezialist ist ein Mensch, der immer mehr von immer weniger weis, bis er alles von nichts weis!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 07.12.05 18:15 
was meinst du denn konkret damit ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.