示例#1
0
        public async Task SendAsync(MailMessageDTO message)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message));
            }

            var mailMessage = message.ToMailMessage();
            await SmtpClient.SendMailAsync(mailMessage);
        }