Einzelnen Beitrag anzeigen

tobiroh

Registriert seit: 12. Mai 2008
1 Beiträge
 
#1

Problem beim senden mit anhang - indy 9

  Alt 12. Mai 2008, 18:09
Hallo liebe Leute,

Ich habe das Problem dass sich bei größeren Anhängen mein Delphiprogramm beim senden aufhängt.
Nach dem senden funktioniert es wieder.

Delphi-Quellcode:
if OpenDialog1.Execute then
   begin

    attach := TidAttachment.Create(msg.MessageParts, OpenDialog1.FileName);
    attach.DisplayName := msg.Subject;
    end;

smtp.AuthenticationType := atLogin;
smtp.Connect;
smtp.Authenticate;


try
 smtp.Send(msg);
finally
 showMessage('mail gesendet');
 smtp.Disconnect;
Ich benutze Indy 9

Ich bin sehr dankbar für schnelle gute Antworten
  Mit Zitat antworten Zitat