Solved

SMTP with ICS, show send progress with 1 file

Posted on 2004-04-21
7
538 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

623 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