ValidateSender_EventArgs.cs
上传用户:horngjaan
上传日期:2009-12-12
资源大小:2882k
文件大小:1k
- using System;
- namespace LumiSoft.MailServer.SMTP
- {
- /// <summary>
- /// Provides data for the ValidateMailFrom event.
- /// </summary>
- public class ValidateSender_EventArgs
- {
- private string m_ConnectedIp = "";
- private string m_MailFrom = "";
- private bool m_Validated = true;
- /// <summary>
- /// Default constructor.
- /// </summary>
- /// <param name="connectedIP">Connected host IP address.</param>
- /// <param name="mailFrom">Sender emali address.</param>
- public ValidateSender_EventArgs(string connectedIP,string mailFrom)
- {
- m_ConnectedIp = connectedIP;
- m_MailFrom = mailFrom;
- }
- #region Properties Implementation
- /// <summary>
- /// IP address of computer, which is sending mail to here.
- /// </summary>
- public string ConnectedIP
- {
- get{ return m_ConnectedIp; }
- }
- /// <summary>
- /// Sender's email address.
- /// </summary>
- public string MailFrom
- {
- get{ return m_MailFrom; }
- }
- /// <summary>
- /// Gets or sets if sender is ok.
- /// </summary>
- public bool Validated
- {
- get{ return m_Validated; }
- set{ m_Validated = value; }
- }
- #endregion
- }
- }