Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Indy Smtp TIdAttachment Löschen (https://www.delphipraxis.net/18084-indy-smtp-tidattachment-loeschen.html)

M_S_W 14. Mär 2004 12:26


Indy Smtp TIdAttachment Löschen
 
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


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:21 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz