🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: NMSMTP1->SendMail(); Question

#3453
From: Hans Galema
Date: Mon, 19 Sep 2005 12:06
18 lines
1543 bytes
David Ayre wrote:
> Thanks to everyone who helped me with Indy 9 I now have my NMSMTP
> routine working fine.

Is the TNMSMTP component part of your Indy distribution ?

 > However, can anyone tell me if there is a
> way to display the progress when sending an attachment?

Take a TProgressBar and use the PacketSent event:

void __fastcall TSendMailForm::NMSMTP1PacketSent(TObject *Sender)
{
    ProgressBar1->Max      =  NMSMTP1->BytesTotal;
    ProgressBar1->Position =  NMSMTP1->BytesSent;
}

Hans.
Technical Details
Message-ID: <432ea995$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <432e6ec8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,58e825dc8c50245f
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 19 Sep 2005 14:06:39 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: NMSMTP1->SendMail(); Question
References: <432e6ec8$1@newsgroups.borland.com>
In-Reply-To: <432e6ec8$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <432ea995$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1127131541 145.98.201.248 (19 Sep 2005 05:05:41 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail