Thread View: borland.public.cppbuilder.internet.socket
12 messages
12 total messages
Started by David Ayre
Mon, 19 Sep 2005 07:54
NMSMTP1->SendMail(); Question
Author: David Ayre
Date: Mon, 19 Sep 2005 07:54
Date: Mon, 19 Sep 2005 07:54
8 lines
1109 bytes
1109 bytes
Thanks to everyone who helped me with Indy 9 I now have my NMSMTP routine working fine. However, can anyone tell me if there is a way to display the progress when sending an attachment? Thanks, David
Re: NMSMTP1->SendMail(); Question
Author: Hans Galema
Date: Mon, 19 Sep 2005 12:06
Date: Mon, 19 Sep 2005 12:06
18 lines
1543 bytes
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.
Re: NMSMTP1->SendMail(); Question
Author: David Ayre
Date: Mon, 19 Sep 2005 15:22
Date: Mon, 19 Sep 2005 15:22
29 lines
1701 bytes
1701 bytes
Hans Galema <notused@notused.nl> wrote:
>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 ?
I had assumed it was. I have BCB4 and I downloaded the updates for BCB4 from the Indy site and I assume this updated the Indy components. Perhaps I am being incredibly stupid.
>
> > 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.
I don't seem to be using TSendMailForm. Should I Be?
Best regards,
David
Re: NMSMTP1->SendMail(); Question
Author: Remy Lebeau (TeamB)
Date: Mon, 19 Sep 2005 17:23
Date: Mon, 19 Sep 2005 17:23
21 lines
1656 bytes
1656 bytes
"David Ayre" <davidcayre@aol.com> wrote in message news:432e6ec8$1@newsgroups.borland.com... > Thanks to everyone who helped me with Indy 9 I now > have my NMSMTP routine working fine. TNMSMTP is NOT a component of Indy. It is a NetMasters component, which has nothing to do with Indy at all. > However, can anyone tell me if there is a way to display > the progress when sending an attachment? There is no way to do that, because Indy does not know the size of the attachment (or the overall message, for that matter) before sending it. The only way to have any kind of meaningful progress when sending a message is to save the message to a temporary file or stream and then use its Size during the transmission. Gambit
Re: NMSMTP1->SendMail(); Question
Author: David Ayre
Date: Mon, 19 Sep 2005 18:37
Date: Mon, 19 Sep 2005 18:37
19 lines
1567 bytes
1567 bytes
Thanks Remy, >TNMSMTP is NOT a component of Indy. It is a NetMasters component, which has >nothing to do with Indy at all. > No, I realise now that it is the component supplied with BCB4. I misinterpreted the instructions on the Indy site and only downloaded the BCB4 updates thinking they contained the Indy components. I realised when I had another look at the site that I needed to download the Indy 9 files which I then managed to find. I have downloaded Indy9.0.18 but cannot find the batch files mentioned in the installation instructions. Have I got all I need to install Indy 9? Thanks, David
Re: NMSMTP1->SendMail(); Question
Author: Hans Galema
Date: Mon, 19 Sep 2005 20:20
Date: Mon, 19 Sep 2005 20:20
7 lines
1139 bytes
1139 bytes
David Ayre wrote: > I don't seem to be using TSendMailForm. Should I Be? TForm1, TForm2, whatever the name of your form would be. Hans.
Re: NMSMTP1->SendMail(); Question
Author: Remy Lebeau (TeamB)
Date: Mon, 19 Sep 2005 20:38
Date: Mon, 19 Sep 2005 20:38
16 lines
1394 bytes
1394 bytes
"David Ayre" <davidcayre@aol.com> wrote in message news:432f055e$1@newsgroups.borland.com... > I have downloaded Indy9.0.18 but cannot find the batch > files mentioned in the installation instructions. That download file is incomplete. It does not contain the batch files. You can, however, downloaded the next oldest version to get them. > Have I got all I need to install Indy 9? No. Gambit
Re: NMSMTP1->SendMail(); Question
Author: David Ayre
Date: Tue, 20 Sep 2005 07:53
Date: Tue, 20 Sep 2005 07:53
11 lines
1192 bytes
1192 bytes
>That download file is incomplete. It does not contain the batch files. You >can, however, downloaded the next oldest version to get them. > Thanks Remy, Does it matter which folder I unzip these files into? David
Re: NMSMTP1->SendMail(); Question
Author: David Ayre
Date: Tue, 20 Sep 2005 07:54
Date: Tue, 20 Sep 2005 07:54
15 lines
1208 bytes
1208 bytes
Hans Galema <notused@notused.nl> wrote: >David Ayre wrote: > >> I don't seem to be using TSendMailForm. Should I Be? > >TForm1, TForm2, whatever the name of your form would be. > >Hans. OK. I see what you mean now. Thanks, David
Re: NMSMTP1->SendMail(); Question
Author: Remy Lebeau (TeamB)
Date: Tue, 20 Sep 2005 16:18
Date: Tue, 20 Sep 2005 16:18
10 lines
1210 bytes
1210 bytes
"David Ayre" <davidcayre@aol.com> wrote in message news:432fc011$1@newsgroups.borland.com... > Does it matter which folder I unzip these files into? No. Gambit
Re: NMSMTP1->SendMail(); Question
Author: David Ayre
Date: Wed, 21 Sep 2005 08:17
Date: Wed, 21 Sep 2005 08:17
21 lines
1771 bytes
1771 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: > >"David Ayre" <davidcayre@aol.com> wrote in message >news:432fc011$1@newsgroups.borland.com... > >> Does it matter which folder I unzip these files into? > >No. > >Gambit > Thanks Remy, I have it all installed now. I have ordered 'Indy in Depth' as there would seem to be a lot to learn. I assume I'll get a download site address eventually. I've had receipts and invoices in abundance but no mention of how I get the product. Cheers, David
Re: NMSMTP1->SendMail(); Question
Author: John
Date: Wed, 21 Sep 2005 13:02
Date: Wed, 21 Sep 2005 13:02
12 lines
1532 bytes
1532 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in news:432f2336@newsgroups.borland.com... > That download file is incomplete. It does not contain the batch files. > You > can, however, downloaded the next oldest version to get them. I have modified this version a little bit, so that it can be installed. ;-) Download: http://forum.newscenterx.de/programming/viewtopic.php?p=1427#1427 regards, John
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads