0
Answer

ConnectEventHandler

Photo of packiaraj

packiaraj

12y
1.3k
1
public delegate void ConnectEventHandler(object sender,string Server,int Port);

public event ConnectEventHandler ConnectionEstablishing;

private void RaiseConnectionEstablishing(string smtpServer, int smtpPort)
        {
            if (ConnectionEstablishing != null)
            {
                ConnectionEstablishing(this, smtpServer, smtpPort);
            }
        }


just ConnectEventHandler is enough for connecting Smtp Server... what is the meaning of connectEventHandler?