SMTPSocket.ServerError
From Xojo Documentation
Event
SMTPSocket.ServerError(ErrorID as Integer, ErrorMessage as String, Email as EmailMessage)
Supported for all project types and targets.
Supported for all project types and targets.
Executes when an error occured while sending a message.
Notes
ErrorID and ErrorMessage are sent by the mail server and Email is the message that was being sent when the error occurred. Email is removed from the queue at the time the event executes.