コード例 #1
0
 public async Task Handle(ConfirmAccountNotification notification, CancellationToken cancellationToken)
 {
     var emailMessage = new EmailMessage
     {
         To      = notification.Email,
         Subject = "Confirm Email"
     };
     await _emailNotification.SendEmailAsync(emailMessage, new { UserName = "******" }, EmailTemplate.EmailConfirmation);
 }
コード例 #2
0
            public async Task Handle(ForgotPasswordEventNotification notification, CancellationToken cancellationToken)
            {
                var emailMessage = new EmailMessage
                {
                    To      = notification.Email,
                    Subject = "Reset Password"
                };

                await _emailNotification.SendEmailAsync(emailMessage, new { notification.Email, notification.Token }, EmailTemplate.ForgotPassword);
            }