SendEmailAsync method does not run

0

Debugging I saw that the SendEmailAsync method of controller does not run and does not return error, it is simply ignored, all the partions are correct userId em>, code and protocol .

string code = await _userManager.GenerateEmailConfirmationTokenAsync(user.Id);  
var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, code = code }, protocol: Request.Url.Scheme);  
await _userManager.SendEmailAsync(user.Id, "Confirmar sua conta", "Confirme sua conta clicando <a href=\"" + callbackUrl + "\">aqui</a>");

Does anyone know what it can be?

    
asked by anonymous 09.10.2017 / 00:37

1 answer

0

For this you must implement the SendEmail class that is signed with the ISendEmail interface, enjoy and see the dependency injection. This should resolve your issue.

    
10.10.2017 / 16:55