| View previous topic :: View next topic |
| Author |
Message |
David Ayre Guest
|
Posted: Mon Sep 19, 2005 7:54 am Post subject: NMSMTP1->SendMail(); Question |
|
|
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
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Mon Sep 19, 2005 12:06 pm Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
David Ayre wrote:
| Quote: | 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 ?
| Quote: | 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.
|
|
| Back to top |
|
 |
David Ayre Guest
|
Posted: Mon Sep 19, 2005 3:22 pm Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
Hans Galema <notused (AT) notused (DOT) nl> wrote:
| Quote: | 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.
| Quote: |
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
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Sep 19, 2005 5:23 pm Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
"David Ayre" <davidcayre (AT) aol (DOT) com> wrote
| Quote: | 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.
| Quote: | 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
|
|
| Back to top |
|
 |
David Ayre Guest
|
Posted: Mon Sep 19, 2005 6:37 pm Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
Thanks Remy,
| Quote: | 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
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Mon Sep 19, 2005 8:20 pm Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
David Ayre wrote:
| Quote: | I don't seem to be using TSendMailForm. Should I Be?
|
TForm1, TForm2, whatever the name of your form would be.
Hans.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Sep 19, 2005 8:38 pm Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
"David Ayre" <davidcayre (AT) aol (DOT) com> wrote
| Quote: | 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.
| Quote: | Have I got all I need to install Indy 9?
|
No.
Gambit
|
|
| Back to top |
|
 |
David Ayre Guest
|
Posted: Tue Sep 20, 2005 7:53 am Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
| Quote: | 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
|
|
| Back to top |
|
 |
David Ayre Guest
|
Posted: Tue Sep 20, 2005 7:54 am Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
Hans Galema <notused (AT) notused (DOT) nl> wrote:
| Quote: | 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
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Sep 20, 2005 4:18 pm Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
"David Ayre" <davidcayre (AT) aol (DOT) com> wrote
| Quote: | Does it matter which folder I unzip these files into?
|
No.
Gambit
|
|
| Back to top |
|
 |
David Ayre Guest
|
Posted: Wed Sep 21, 2005 8:17 am Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote:
| Quote: |
"David Ayre" <davidcayre (AT) aol (DOT) com> wrote in message
news:432fc011$1 (AT) newsgroups (DOT) 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
|
|
| Back to top |
|
 |
John Guest
|
Posted: Wed Sep 21, 2005 1:02 pm Post subject: Re: NMSMTP1->SendMail(); Question |
|
|
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in
news:432f2336 (AT) newsgroups (DOT) borland.com...
| Quote: | 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
|
|
| Back to top |
|
 |
|