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); }
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); }