Autor Beitrag
noreux
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Sa 29.06.02 14:10 
Hallo,

Ein teil meines Programmes ist es, eine email zu versenden. das klappt auch wunderbar, nur am Ende happerts...ich habe folgende Prozedur:
ausblenden Quelltext
1:
2:
3:
4:
5:
ClientSocket1.Socket.SendText('mail from: admin@test.com' #10#13);
ClientSocket1.Socket.SendText('rcpt to: recipient@test.com' #10#13);
ClientSocket1.Socket.SendText('data' #10#13);
ClientSocket1.Socket.SendText('Hier steht die email...' #10#13);
ClientSocket1.Socket.SendText('.' #10#13);

Natürlich habe ich die codes nciht einfahc so untereinander gehauen sondern sie so eingebaut, dass das Programm auch richtig funktioniert...Ich bekomme auch nach jeder Zeile eine erfolgreiche Antwort vom Server, bis zu dem Befehl "data". Dies beantwortet der Server noch erfolgreich, aber dann kommt gar nix mehr vom server. nachdem der emailtext gesendet ist und ich den Punkt in der einzelnen Zeile gesendet habe, bekomme ich keine Antwort. Wenn ich alles manuel in telnet eingebe, sendet er die email ganz normal. Kann mir jemand helfen, wie ich den letzten schritt de prozedur absolvieren kann? alles klappt, nur der befehl er soll die email wegschicken, da klappt irgenwas nicht...
mfg
Noreux
Jagg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Do 04.07.02 16:56 
Hallo,ich möchte auch ein email programm schreiben
kannst du mir sagen,was su da geschrieben hast ???
ich könnte das ja auch nur kopieren aber das ist ja nicht der sinn der sache ne ? :-)

Jagg !!!!!!!
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Fr 05.07.02 02:03 
Titel: so
vielleicht probierst du mal so:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
ClientSocket1.Socket.SendText('mail from: admin@test.com' + #10#13);

ClientSocket1.Socket.SendText('rcpt to: recipient@test.com' + #10#13);

ClientSocket1.Socket.SendText('data' + #10#13);

ClientSocket1.Socket.SendText('Hier steht die email...' + #10#13);

ClientSocket1.Socket.SendText('.' + #10#13 + #10#13);

das sollte eigentlich funzen 8)

wenn alle stricke reissen probieren die befehle GROSSZUSCHREIBEN z.b. RCPT TO:

Code-Tags hinzugefügt. Tino
Jagg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Fr 05.07.02 08:33 
ER versendet bei mir nicht !
Was habe ich falsch gemacht ???

Jagg !
Jagg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Fr 05.07.02 10:58 
Was macht er bei dem quelltext eigentlich ???
kann mir jemand das mal sagen,wenn es geht schritt für schritt ???

Jagg !