示例#1
0
 public MailModel(MailHeadModel mailHead, String body, String bodyHtml, IList <Attachment> attachment)
 {
     this.MailHead    = mailHead;
     this.Body        = body;
     this.BodyHtml    = bodyHtml;
     this.Attachments = attachment;
 }
示例#2
0
 public MailModel(MailHeadModel mailHead, String body, String bodyHtml, IList<Attachment> attachment)
 {
     this.MailHead = mailHead;
     this.Body = body;
     this.BodyHtml = bodyHtml;
     this.Attachments = attachment;
 }
示例#3
0
 public static MailHeadModel GetMailHead(String uid, String mimeHead)
 {
     var headSet = ValueMIME.SerializeMIMEHead(mimeHead);
     MailHeadModel model = new MailHeadModel(
         uid,
         getName(headSet[MIMEPrefix.From]),
         getAddress(headSet[MIMEPrefix.From]),
         headSet[MIMEPrefix.Subject],
         getDate(headSet[MIMEPrefix.Date]),
         headSet[MIMEPrefix.ContentEncoding]
     );
     return model;
 }