/// <summary> /// Raises <b>Ehlo</b> event. /// </summary> /// <param name="domain">Ehlo/Helo domain.</param> /// <param name="reply">Default SMTP server reply.</param> /// <returns>Returns SMTP server reply what must be sent to the connected client.</returns> private SMTP_Reply OnEhlo(string domain,SMTP_Reply reply) { if(this.Ehlo != null){ SMTP_e_Ehlo eArgs = new SMTP_e_Ehlo(this,domain,reply); this.Ehlo(this,eArgs); return eArgs.Reply; } return reply; }
/// <summary> /// Is called when SMTP server session gets EHLO/HELO command. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">Event data.</param> private void m_pSmtpServer_Session_Ehlo(object sender,SMTP_e_Ehlo e) { }