public SendedEmailMessage(string from, ICollection <string> to, string subject, string textBody, EmailAccount emailAccount) { From = from; SetTo(to); SendedAt = DateTime.UtcNow; LastActivity = DateTime.UtcNow; Subject = subject; TextHTMLBody = textBody; HasAttachment = false; Deleted = false; EmailAccount = emailAccount; }
public void AddEmailAccount(EmailAccount emailAccount) { EmailAccounts.Add(emailAccount); }