コード例 #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();
 }