ValidateRecipient_EventArgs.cs
上传用户:horngjaan
上传日期:2009-12-12
资源大小:2882k
文件大小:2k
源码类别:
Email服务器
开发平台:
C#
- using System;
- namespace LumiSoft.MailServer.SMTP
- {
- /// <summary>
- /// Provides data for the ValidateMailTo event.
- /// </summary>
- public class ValidateRecipient_EventArgs
- {
- private string m_ConnectedIp = "";
- private string m_MailTo = "";
- private bool m_Validated = true;
- private bool m_Authenticated = false;
- private bool m_LocalRecipient = true;
- /// <summary>
- /// Default constructor.
- /// </summary>
- /// <param name="connectedIP">Connected host IP address.</param>
- /// <param name="mailTo">Recipient email address.</param>
- /// <param name="authenticated">Specifies if connected user is authenticated.</param>
- public ValidateRecipient_EventArgs(string connectedIP,string mailTo,bool authenticated)
- {
- m_ConnectedIp = connectedIP;
- m_MailTo = mailTo;
- m_Authenticated = authenticated;
- }
- #region Properties Implementation
- /// <summary>
- /// IP address of computer, which is sending mail to here.
- /// </summary>
- public string ConnectedIP
- {
- get{ return m_ConnectedIp; }
- }
- /// <summary>
- /// Recipient's email address.
- /// </summary>
- public string MailTo
- {
- get{ return m_MailTo; }
- }
- /// <summary>
- /// Gets if connected user is authenticated.
- /// </summary>
- public bool Authenticated
- {
- get{ return m_Authenticated; }
- }
- /// <summary>
- /// Gets or sets if reciptient is allowed to send mail here.
- /// </summary>
- public bool Validated
- {
- get{ return m_Validated; }
- set{ m_Validated = value; }
- }
- /// <summary>
- /// Gets or sets if recipient is local or needs relay.
- /// </summary>
- public bool LocalRecipient
- {
- get{ return m_LocalRecipient; }
- set{ m_LocalRecipient = value; }
- }
- #endregion
- }
- }