Solved

SMTP with ICS, show send progress with 1 file

Posted on 2004-04-21
7
530 Views
Last Modified: 2010-04-05
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.
0
Comment
Question by:bryan7
  • 2
7 Comments
 
LVL 3

Accepted Solution

by:
Kunfufaresi earned 250 total points
ID: 10893675
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
 
LVL 3

Author Comment

by:bryan7
ID: 13283463
I didn't get to solve this yet, some better solution would be thankful.
0
 
LVL 3

Author Comment

by:bryan7
ID: 13302949
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

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Performance of SQL statement 37 112
Delphi: Connect to running MS Outlook 4 89
DBGrid or StringGrid ? 6 90
Multi-layered image in FireMonkey 9 35
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question