Example #1
0
        /// <summary>
        /// Raises event ValidateMailboxSize.
        /// </summary>
        /// <param name="session"></param>
        /// <param name="eAddress"></param>
        /// <param name="messageSize"></param>
        /// <returns></returns>
        internal bool Validate_MailBoxSize(SMTP_Session session, string eAddress, long messageSize)
        {
            ValidateMailboxSize_EventArgs oArgs = new ValidateMailboxSize_EventArgs(session, eAddress, messageSize);

            if (this.ValidateMailboxSize != null)
            {
                this.ValidateMailboxSize(this, oArgs);
            }

            return(oArgs.IsValid);
        }
Example #2
0
		/// <summary>
		/// Raises event ValidateMailboxSize.
		/// </summary>
		/// <param name="session"></param>
		/// <param name="eAddress"></param>
		/// <param name="messageSize"></param>
		/// <returns></returns>
		internal bool Validate_MailBoxSize(SMTP_Session session,string eAddress,long messageSize)
		{
			ValidateMailboxSize_EventArgs oArgs = new ValidateMailboxSize_EventArgs(session,eAddress,messageSize);
			if(this.ValidateMailboxSize != null){
				this.ValidateMailboxSize(this,oArgs);
			}

			return oArgs.IsValid;
		}