public async Task SendConfirmationEmail(int id, string email) { var validEmailToken = await _jwtFactory.GenerateEmailConfirmationToken(email); validEmailToken = WebEncoders.Base64UrlEncode(Encoding.UTF8.GetBytes(validEmailToken)); string url = $"{_options.Value.UrlConfirmationEmail}?userId={id}&token={validEmailToken}"; await _emailSender.SendEmailAsync(email, "Please Confirm your email", $"<h2>Welcome to Empreenda.Me Demo</h2>" + $"<p>Please confirm your email by <a href='{url}'>clicking here</a></p>"); }