|Subject:||tidSmtp "state machine" question|
|Posted by:||arthur hoornweg (firstname.lastname@example.org)|
|Date:||Mon, 16 Jan 2006|
I have a problem with tidsmp, or more exactly, with "how to
find out what went wrong during the transmission of mail."
A SMTP session is a state machine: several steps are performed
sequentially until a mail is sent. During each step errors may
AFAIK, tidsmtp only gives me the possibilities to call the "send" method,
and to query the "lastcmdresult" property if anything goes wrong.
The point is, I don't know WHERE in the state machine the error
Was it a response to "MAIL FROM"?
Was it a response to one of the "RCPT TO" commands?
Or was the error generated *after* the mail was transmitted, something
like "mail quota exceeded" or "we accept no spam"?
The problem is, I have to decide whether to retry sending the
mail at some later point or not, or to notify the original sender
that a problem has occurred.
The property Lastcmdresult only gives me an error code, but
not the information at what piont of the session it occurred !!!
(In order to reply per e-mail, please just remove the ".net"
from my e-mail address. Leave the rest of the address intact
including the "antispam" part. I had to take this measure to
counteract unsollicited mail.)