Autor Beitrag
Red_Lion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Mo 15.03.04 15:21 
Hallo Leute,

ich habe ein kleines Problem. Ich muss eine Mail versenden ohne Bestätigung von dem User. Im Grunde ist es ein Bestellungsprogram wo der Benutzter ( also der Computer oder Programm ) automatisch einen Mail zu dem Lieferanten schickt mit allen Informationen. Jetzt meine Frage habe mal mit der INDY Komponente rumprobiert, aber ich bekomme gar nichts weggeschickt. :(


Mein Code ist der folgende :
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
     IndyMessage.Recipients.Clear ;
     IndyMessage.Recipients.EMailAddresses := 'xyz@yxz.zxy' ;
     Indy.AuthenticationType := atNone ;
     IndyMessage.BccList.Clear ;
     with IndyMessage.Body do begin
         Add ('Datum: ' + FormatDateTime ('dd.mm.yyyy hh:nn',now)) ;
     end ;
     IndyMessage.Subject := 'Bestellung:' ;
     try
        Indy.Connect ;
        Indy.Send (IndyMessage) ;
        Indy.Disconnect ;
     except
     end ;


also ich hoffe jemand kann mir weiterhelfen oder auch vielleicht ein Bespiel geben. Eine andere Frage ist auch, brauche ich einen verfügbaren STMP Server in der Infrastruktur ? Oder geht das auch wenn noch kein SMTP da ist. Der Mail Server kommt auch gleich an aber bis dahin können wir leider nicht warten :(

Moderiert von user profile iconPeter Lustig: Code- durch Delphi-Tags ersetzt
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 16.03.04 17:23 
hast du dir denn mal die demo dateien zu den indys angeschut ??

Kommt denn eine Feheler medung ?? welche ?? oder kommt einfach keine mail an ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Red_Lion Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Di 16.03.04 17:43 
Es kommt keine Fehlermeldung, sondern die Mail wird entweder nicht verschickt oder richtig verschickt aber kommt nie an :( Also ich weiss nicht wo das hangt da liegt mein problem. Eine Demo Datei von Indy ? Wo ist das, vieleicht kann die mir helfen.. Kannst mir sagen wo ich das finde ?
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 16.03.04 19:04 
auf der seite von INDY da gibt auch die Demos.

hast du denn auch den SMPT Server richti eingegeben und die Empfängeradresse richtig eingeben. oft sinds immer solche sachen...

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