Discussion:
TIdSMTP Send methode
(too old to reply)
James Williams
2008-07-04 19:25:54 UTC
Permalink
I have just a quick question. Does the Send methode return immediately or
after the message has been completely sent?

Thanks,


James
Remy Lebeau (TeamB)
2008-07-06 06:53:17 UTC
Permalink
Post by James Williams
I have just a quick question. Does the Send methode return
immediately or after the message has been completely sent?
It returns after the message has been accepted by the server for future
delivery. The actual delivery does not occur until after you disconnect
from the SMTP server.


Gambit
James Williams
2008-07-06 22:06:13 UTC
Permalink
But once it has been accepted by the server, does that mean that the message
and any attachments are sitting on the server. I.E. Is it safe to
disconnect and delete temporary attachment files once send returns?


Thanks,


James
Post by Remy Lebeau (TeamB)
Post by James Williams
I have just a quick question. Does the Send methode return
immediately or after the message has been completely sent?
It returns after the message has been accepted by the server for future
delivery. The actual delivery does not occur until after you disconnect
from the SMTP server.
Gambit
Remy Lebeau (TeamB)
2008-07-07 17:27:33 UTC
Permalink
Post by James Williams
But once it has been accepted by the server, does that mean
that the message and any attachments are sitting on the server.
Yes.
Post by James Williams
Is it safe to disconnect and delete temporary attachment files
once send returns?
Yes. In fact, you must disconnect in order for the message to be delivered.
SMTP is a transactional protocol. The transaction is not complete until the
disconnect occurs.


Gambit

Loading...