SMTP Error Responses

Question:

Is there any method to output to a log file the actual handshaking that occurs between the email client and the email server (POP & SMTP) when they try and connect for fault finding.

Answer:

The last-error information (LastErrorText, LastErrorHtml, LastErrorXml, SaveLastError) will contain the error responses received from the SMTP or POP3 server.