Hi,

I'm using SMTP from Indy to send emails in Delphi 7. Works well, except for one problem: there seems to be no way for the program to know when the email has been completely sent.

I try monitoring the OnStatus event, but it gets all the way to "Disconnected" long before the internal buffers have been fully sent. No other events that I have tried seem to be helpful in this regard either.

So people using the program are happy to close it down before the buffer clears, and the email never completes sending .. which means it gets rejected by the receiving server, and never delivered.

I have tried using a timing loop, but some people use the program with DSL, and it is amazing just how slow DSL can get when there are a lot of other users on the same street.

What should I be checking to know when the buffers have cleared?

Thanks,
Rainer

_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to