private async Task <string> GenareteForgotPasswordEmailTemplateAsync(ApplicationUser user) { string htmlTemplate = string.Empty; var passwordResetToken = await _userManager.GeneratePasswordResetTokenAsync(user); string link = Url.Action("ResetPassword", "Account", new { userId = user.Id, email = user.Email, code = passwordResetToken }, protocol: HttpContext.Request.Scheme); string title = "Please reset your password by clicking here:"; string linkText = "Forgot Password"; //htmlTemplate = "Please reset your password by clicking here: <a target='_blank' href=\"" + link + "\">link</a>"; htmlTemplate = EmailTemplateHelper.GetEmailTemplate(title, link, linkText); return(htmlTemplate); }