public Message AddRecipient(Recipient recipient) { this.bccRecipients.Add(recipient ?? throw new ArgumentNullException(nameof(recipient))); return(this); }
public Message WithSender(Recipient sender) { this.Sender = sender ?? throw new ArgumentNullException(nameof(sender)); return(this); }
public Message WithReplyTo(Recipient replyTo) { this.ReplyTo = replyTo ?? throw new ArgumentNullException(nameof(replyTo)); return(this); }
public Message(Recipient bccRecipient, string subject, string bodyAsHtml) { this.bccRecipients.Add(bccRecipient ?? throw new ArgumentNullException(nameof(bccRecipient))); this.Subject = subject ?? throw new ArgumentNullException(nameof(subject)); this.BodyAsHtml = bodyAsHtml ?? throw new ArgumentNullException(nameof(bodyAsHtml)); }