email - How can the smtp/pop3 client reads the [error] message that the smtp/pop3 server has send to them (in delphi)? -
my server side smtp , pop3 events send [error] messages asender : tidcommand :
asender.reply.setreply(ok, 'message send'); or
asender.reply.setreply(err, 'error message send'); so question how can message read smtp/pop3 client ?
sounds need learn how exceptions work.
if connect() fails, exception raised. several different exception types possible, including eidsocketerror, contains socket error code.
if pop3/smtp command fails, eidrfcreplyerror exception raised. exception contains server's response code , message. information available in component's lastcmdresult.code, lastcmdresult.numericcode, , lastcmdresult.text properties.
Comments
Post a Comment