コード例 #1
0
        public Task SendViewedMail(MailUser to, string viewedBy)
        {
            var email = new Email()
            {
                To = new List <MailUser> {
                    to
                },
                Subject = "Matcha Profile Viewed",
                HTML    = _mailTemplate.GetViewedTemplate(to.Name, viewedBy)
            };

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