Exemplo n.º 1
0
        public Message AddRecipient(Recipient recipient)
        {
            this.bccRecipients.Add(recipient ?? throw new ArgumentNullException(nameof(recipient)));

            return(this);
        }
Exemplo n.º 2
0
        public Message WithSender(Recipient sender)
        {
            this.Sender = sender ?? throw new ArgumentNullException(nameof(sender));

            return(this);
        }
Exemplo n.º 3
0
        public Message WithReplyTo(Recipient replyTo)
        {
            this.ReplyTo = replyTo ?? throw new ArgumentNullException(nameof(replyTo));

            return(this);
        }
Exemplo n.º 4
0
 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));
 }