private MimeMessage CreateMessage(EmailSenderSmtpConfig smtp, string toAddress)
        {
            var message = new MimeMessage();

            message.From.Add(new MailboxAddress(smtp.Alias ?? smtp.Username, smtp.Address ?? smtp.Username));
            message.To.Add(new MailboxAddress(toAddress));

            return(message);
        }
 public EmailSenderConfig()
 {
     this.Smtp = new EmailSenderSmtpConfig();
 }