BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

NMSMTP1->SendMail(); Question

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Socket)
View previous topic :: View next topic  
Author Message
David Ayre
Guest





PostPosted: Mon Sep 19, 2005 7:54 am    Post subject: NMSMTP1->SendMail(); Question Reply with quote




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





PostPosted: Mon Sep 19, 2005 12:06 pm    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote



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





PostPosted: Mon Sep 19, 2005 3:22 pm    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote




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





PostPosted: Mon Sep 19, 2005 5:23 pm    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote


"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





PostPosted: Mon Sep 19, 2005 6:37 pm    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote


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





PostPosted: Mon Sep 19, 2005 8:20 pm    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote

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





PostPosted: Mon Sep 19, 2005 8:38 pm    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote


"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





PostPosted: Tue Sep 20, 2005 7:53 am    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote



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





PostPosted: Tue Sep 20, 2005 7:54 am    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote


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





PostPosted: Tue Sep 20, 2005 4:18 pm    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote


"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





PostPosted: Wed Sep 21, 2005 8:17 am    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote


"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





PostPosted: Wed Sep 21, 2005 1:02 pm    Post subject: Re: NMSMTP1->SendMail(); Question Reply with quote

"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. Wink
Download: http://forum.newscenterx.de/programming/viewtopic.php?p=1427#1427

regards,
John



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Socket) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.