CommandReply Event
Reports the receipt of a reply to a command.
Syntax
public event OnCommandReplyHandler OnCommandReply; public delegate void OnCommandReplyHandler(object sender, SmtpclientCommandReplyEventArgs e); public class SmtpclientCommandReplyEventArgs : EventArgs { public string Cmd { get; } public string Reply { get; } }
Public Event OnCommandReply As OnCommandReplyHandler Public Delegate Sub OnCommandReplyHandler(sender As Object, e As SmtpclientCommandReplyEventArgs) Public Class SmtpclientCommandReplyEventArgs Inherits EventArgs Public ReadOnly Property Cmd As String Public ReadOnly Property Reply As String End Class
Remarks
Use this event to track command replies sent in by the server. Use Command to track the commands sent out by the client.