Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 public void SendEmail(EmailContact to, string subject, string message, List <EmailAttachment> attachments, bool digitallySign, bool encrypt)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public void SendEmail(EmailContact to, string subject, string message)
 {
     throw new NotImplementedException();
 }