public MailModel(MailHeadModel mailHead, String body, String bodyHtml, IList <Attachment> attachment) { this.MailHead = mailHead; this.Body = body; this.BodyHtml = bodyHtml; this.Attachments = attachment; }
public MailModel(MailHeadModel mailHead, String body, String bodyHtml, IList<Attachment> attachment) { this.MailHead = mailHead; this.Body = body; this.BodyHtml = bodyHtml; this.Attachments = attachment; }
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; }