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?