ValidateRecipient_EventArgs.cs
上传用户:horngjaan
上传日期:2009-12-12
资源大小:2882k
文件大小:2k
源码类别:

Email服务器

开发平台:

C#

  1. using System;
  2. namespace LumiSoft.MailServer.SMTP
  3. {
  4. /// <summary>
  5. /// Provides data for the ValidateMailTo event.
  6. /// </summary>
  7. public class ValidateRecipient_EventArgs
  8. {
  9. private string m_ConnectedIp     = "";
  10. private string m_MailTo          = "";
  11. private bool   m_Validated       = true;
  12. private bool   m_Authenticated   = false;
  13. private bool   m_LocalRecipient  = true;
  14. /// <summary>
  15. /// Default constructor.
  16. /// </summary>
  17. /// <param name="connectedIP">Connected host IP address.</param>
  18. /// <param name="mailTo">Recipient email address.</param>
  19. /// <param name="authenticated">Specifies if connected user is authenticated.</param>
  20. public ValidateRecipient_EventArgs(string connectedIP,string mailTo,bool authenticated)
  21. {
  22. m_ConnectedIp   = connectedIP;
  23. m_MailTo        = mailTo;
  24. m_Authenticated = authenticated;
  25. }
  26. #region Properties Implementation
  27. /// <summary>
  28. /// IP address of computer, which is sending mail to here.
  29. /// </summary>
  30. public string ConnectedIP
  31. {
  32. get{ return m_ConnectedIp; }
  33. }
  34. /// <summary>
  35. /// Recipient's email address.
  36. /// </summary>
  37. public string MailTo
  38. {
  39. get{ return m_MailTo; }
  40. }
  41. /// <summary>
  42. /// Gets if connected user is authenticated.
  43. /// </summary>
  44. public bool Authenticated
  45. {
  46. get{ return m_Authenticated; }
  47. }
  48. /// <summary>
  49. /// Gets or sets if reciptient is allowed to send mail here.
  50. /// </summary>
  51. public bool Validated
  52. {
  53. get{ return m_Validated; }
  54. set{ m_Validated = value; }
  55. }
  56. /// <summary>
  57. /// Gets or sets if recipient is local or needs relay.
  58. /// </summary>
  59. public bool LocalRecipient
  60. {
  61. get{ return m_LocalRecipient; }
  62. set{ m_LocalRecipient = value; }
  63. }
  64. #endregion
  65. }
  66. }