var emailBody = "Welcome to our application. Please click the following link to verify your email address: " + callbackUrl; var message = new IdentityMessage { Destination = userEmail, Subject = "Email Verification", Body = emailBody }; await UserManager.SendEmailAsync(user.Id, message);
var emailBody = "Please click the following link to reset your password: " + callbackUrl; var message = new IdentityMessage { Destination = userEmail, Subject = "Password Reset", Body = emailBody }; await UserManager.SendEmailAsync(user.Id, message);In this example, an email is sent to the user's email address with a link to reset their password. Package library: Microsoft.AspNet.Identity.Core (NuGet package)