🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5534

Re: Deleting Sent Attachments in Indy SMTP

#5534
From: Remy Lebeau (TeamB)
Date: Fri, 30 Jul 2004 18:37
16 lines
1293 bytes
"Antonio Donato" <espvida@osite.com.br> wrote in message
news:410A91BD.B2B07735@osite.com.br...

> What code I have to use in order that, after having
> sent a mail message, to delete the attachments? Thanks

Simply delete the TIdAttachment that you allocated:

    TIdAttachment *attachment1 = new
TIdAttachment(IndyMessage->MessageParts, AttachFileOne);
    //...
    delete attachment1;


Gambit
Technical Details
Message-ID: <410a9542$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <410A91BD.B2B07735@osite.com.br>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,7d6c5fd30befdd4b
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <410A91BD.B2B07735@osite.com.br>
Subject: Re: Deleting Sent Attachments in Indy SMTP
Date: Fri, 30 Jul 2004 11:37:44 -0700
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <410a9542$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1091212610 68.69.17.41 (30 Jul 2004 11:36:50 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail