コード例 #1
0
        public Task SendVerificationMail(MailUser to, string verifyLink)
        {
            var email = new Email()
            {
                To = new List <MailUser> {
                    to
                },
                Subject = "Matcha Account Verification",
                HTML    = _mailTemplate.GetRegisterTemplate(verifyLink)
            };

            _logger.LogInformation("[MAIL] Email sent to \"{0}\" with Subject \"{1}\"", to.Email, email.Subject);
            return(SendMail(new Mailable(email)));
        }