private Reply CreateReplyFromMail(System.Net.Mail.MailMessage message, Contact from)
        {
            var reply = new Reply
            {
                From = from,
                EmailText = message.Body,
                RecievedOn = DateTime.Now,
                Subject = message.Subject,
                IsNew = true
            };
            foreach (var mailAttachment in message.Attachments)
            {
                reply.AddAttachment(CreateAttachment(mailAttachment));
            }

            return reply;
        }
Esempio n. 2
0
 public virtual void AddReply(Reply reply)
 {
     reply.Distribution = this;
     Replies.Add(reply);
 }