This is equivalent to working with a UART on an RS485 bus.  The serial
buffer empty interrupt just tells you that the buffer is ready for another
character.  The problem is that it's the wrong time to put the RS485 bus
back to receive mode.

The transmit shift register empty status is what is needed in the case of
serial transmissions.  You will probably have to dive deep into the code
or select a different SMTP package.

John Dammeyer

Automation Artisans Inc.
http://www.autoartisans.com/ELS/
Ph. 1 250 544 4950


> -----Original Message-----
> From: delphi-boun...@elists.org
> [mailto:delphi-boun...@elists.org] On Behalf Of Rainer von Saleski
> Sent: Wednesday, March 02, 2011 9:36 AM
> To: delphi@elists.org
> Subject: Re: How do I know when Indy's SMTP is done sending?
>
>
> Hi Bjarne,
>
> The code you suggest is precisely what I do.  The problem is that the
> Send completes before sending is complete -- it returns once
> the message
> has been loaded into the outgoing buffer.  And the disconnect also
> completes successfully before the outgoing buffer has actually
> transmitted its contents over the internet.
>
> So ... my problem is ... How do I know when the transmission
> is actually
> complete, and it is safe to end the program?
>
> 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

Reply via email to