Ejemplo n.º 1
0
        /// <summary>
        /// Raises event ValidateMailFrom.
        /// </summary>
        /// <param name="session"></param>
        /// <param name="reverse_path"></param>
        /// <param name="email"></param>
        /// <returns></returns>
        internal ValidateSender_EventArgs OnValidate_MailFrom(SMTP_Session session, string reverse_path, string email)
        {
            ValidateSender_EventArgs oArg = new ValidateSender_EventArgs(session, email);

            if (this.ValidateMailFrom != null)
            {
                this.ValidateMailFrom(this, oArg);
            }

            return(oArg);
        }
Ejemplo n.º 2
0
		/// <summary>
		/// Raises event ValidateMailFrom.
		/// </summary>
		/// <param name="session"></param>
		/// <param name="reverse_path"></param>
		/// <param name="email"></param>
		/// <returns></returns>
		internal ValidateSender_EventArgs OnValidate_MailFrom(SMTP_Session session,string reverse_path,string email) 
		{	
			ValidateSender_EventArgs oArg = new ValidateSender_EventArgs(session,email);
			if(this.ValidateMailFrom != null){
				this.ValidateMailFrom(this, oArg);
			}

			return oArg;						
		}