I know that the default Indy10 buffer sizes for TCP Client/Server send/receive are only 32k in size. Seems odd they would use a bigger buffer for SMTP.
-----Original Message----- From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf Of Rainer von Saleski Sent: Wednesday, 9 March 2011 4:33 AM To: Borland's Delphi Discussion List Subject: Re: How do I know when Indy's SMTP is done sending? Thanks for the commiseration, everyone ... unfortunately, none of it is much help. Yes, what I need to know is how much data us left in the send buffer. I thought I had tried to say that. Yes, I have tried the OnStatus and OnWorkEnd events -- they do not take into account the buffer lag. OnWorkEnd fires before OnStatus returns "Disconnected", which happens long before the buffer drains. Did I mention that this is a 7 MB email? I have tried digging down through the Indy code. The buffer structure (a TMemoryStream) is located in a Private section, and I see no hooks to know how much is in the buffer at any time. Any other suggestions? Thanks, Rainer _______________________________________________ Delphi mailing list Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi