Einzelnen Beitrag anzeigen

M_S_W

Registriert seit: 29. Nov 2003
1 Beiträge
 
#1

Indy Smtp TIdAttachment Löschen

  Alt 14. Mär 2004, 12:26
Hallo,

ich habe ein Mailprogramm auf Basis des Maildemos der Indy Tools erstellt.
Ich habe allerdings folgendes Problem, welches in der Original Demo auch auftritt:

Email 1 wird mit Attachment versendet. SMTP Disconnect usw...
Nun will ich eine weitere email versenden. Das alte Attachment ist noch in der Auswahl uns lässt sich nicht löschen.

Es gibt einen Destructor TIdAttachment.Destroy;
Beim Comiplieren bekomme ich eine Fehlermeldung "Nicht genügend wirkliche Parameter. Aber welche?

Hier die sehr dürftige Beschreibung von Indy 9:

Destructor for the object instance.

destructor Destroy; override;

Description

Destroy is the Destructor for the object instance. If the FileIsTempFile property contains True, Destroy calls DeleteFile using the Filename property to remove the temporary file for the attachment. Destroy calls the inherited method to finalize destruction of the object instance.

Bin für jede Hilfe dankbar!

MSW
  Mit Zitat antworten Zitat