// ********************** Created by Chen ************* *************
Using System;
Using System. IO;
Using System. Text;
Using System. Net;
Using System. Net. Sockets;
Using System. Collections;
Using System. Collections. Specialized;
Using KSN. Exceptions;
Using KSN. Validate;
Namespace KSN. Web. Mail
{
/// <Summary>
/// Email content
/// </Summary>
Public class MailMessage
{
Private string sender = null;
Private StringCollection receivers = new StringCollection ();
Private string subject = "";
Private string xMailer = "";
Private StringCollection attachments = new StringCollection ();
Private MailEncodings mailEncoding = MailEncodings. GB2312;
Private MailTypes mailType = MailTypes. Html;
Private byte [] mailBody = null;
/// <Summary>
/// Get or set the sender
/// </Summary>
Public string Sender
{
Get {return this. sender ;}
Set {this. sender = value ;}
}
/// <Summary>
/// Obtain the recipient address set
/// </Summary>
Public StringCollection Receivers
{
Get {return this. receivers ;}
}
/// <Summary>
/// Obtain or set the Email Subject
/// </Summary>
Public string Subject
{
Get {return this. subject ;}
Set {this. subject = value ;}
}
/// <Summary>
/// Get or set the email Transmitter
/// </Summary>
Public string XMailer
{
Get {return this. xMailer ;}
Set {this. xMailer = value ;}