SMTP with ICS, show send progress with 1 file

How can I show the progress of sending a file with the
SMTP mailer example with ICS ? I'd like a progressbar
to show the progress of sending 1 attached file.
I've checked the smtp component events etc a bit
but haven't been able to find a way to get a progress
on the amount of data sent after the file send is started.

Thanks.
LVL 3
bryan7Asked:
Who is Participating?
 
KunfufaresiConnect With a Mentor Commented:
Hello,

If you opened SMTPProt.Pas and found the procedure datanext. Here you should be able to catch each line being sent, using sizeof on the buffer you could get a good idea of what is being sent. Of course you'll have to add changes to the ics unit. The easy way would be to define your own global variable which you could set to 0 just before starting the send, then use a timer clock to to update your progressbar every 50ms or smth like that, the more time taking idea is of course create a new event in the ICS component.

Ekim
0
 
bryan7Author Commented:
I didn't get to solve this yet, some better solution would be thankful.
0
 
bryan7Author Commented:
Comment from bryan7
Date: 02/11/2005 07:27AM CET
 Your Comment  


I didn't get to solve this yet, some better solution would be thankful.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.