Пример #1
0
 public Email(int id,
              string guid,
              EmailAccount from,
              EmailContact to,
              string subject,
              string message,
              bool isHtml,
              string batchId,
              DateTime initialSendDate,
              bool isSigned,
              bool isEncrypted,
              EmailSendStatus sendingStatus,
              DateTime dateCreated,
              string createdBy,
              DateTime dateLastEdited,
              string lastEditedBy)
 {
     Id   = id;
     Guid = guid;
     From = from;
     To.Add(to);
     Subject        = subject;
     Message        = message;
     IsHtml         = isHtml;
     BatchId        = batchId;
     SendDate       = initialSendDate;
     IsSigned       = isSigned;
     IsEncrypted    = isEncrypted;
     SendingStatus  = sendingStatus;
     DateCreated    = dateCreated;
     CreatedBy      = createdBy;
     DateLastEdited = dateLastEdited;
     LastEditedBy   = lastEditedBy;
 }
Пример #2
0
 public Email(
     EmailAccount from,
     EmailContact to,
     string subject,
     string message,
     bool isHtml,
     string batchId,
     DateTime initialSendDate,
     bool isSigned,
     bool isEncrypted
     )
 {
     From = from;
     To.Add(to);
     Subject        = subject;
     Message        = message;
     IsHtml         = isHtml;
     BatchId        = batchId;
     SendDate       = initialSendDate;
     IsSigned       = isSigned;
     IsEncrypted    = isEncrypted;
     Guid           = System.Guid.NewGuid().ToString();
     DateCreated    = DateTime.Now;
     DateLastEdited = DateTime.Now;
     SendingStatus  = EmailSendStatus.PENDING;
 }
Пример #3
0
 public void SendEmail(EmailContact to, string subject, string message, List <EmailAttachment> attachments, bool digitallySign, bool encrypt)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public void SendEmail(EmailContact to, string subject, string message)
 {
     throw new NotImplementedException();
 }