title: Html not getting correctly inserted into email when using the default asp.net mvc template
body: <p>Using the default mvc code for confirming email addresses on registration but when the email gets sent it isn't showing the html.
  <a href="https://i.stack.imgur.com/cKvpM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cKvpM.png" alt="enter image description here"></a>
  Template MVC code:</p>
  
  <pre><code>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, "Confirm your account", "Please confirm your account by clicking &lt;a href=\"" +
                      callbackUrl + "\"&gt;here&lt;/a&gt;");
  </code></pre>
  
  <p>Send Email Async:</p>
  
  <pre><code> public Task SendAsync(IdentityMessage message)
      {
  
          // Plug in your email service here to send an email.
          SmtpClient client = new SmtpClient();
          return client.SendMailAsync("email here",
                                      message.Destination,
                                      message.Subject,
                                      message.Body);
          return Task.FromResult(0);
      }
  </code></pre>
  
  <p>When looking through some of the other questions on SO, I changed my send code slightly so that I could set the body to allow html but I still have the same issue</p>
  
  <pre><code>  public Task SendAsync(IdentityMessage message)
      {
          MailMessage msg = new MailMessage();
          msg.IsBodyHtml = true;
          msg.Body = message.Body;
          // Plug in your email service here to send an email.
          SmtpClient client = new SmtpClient();
          return client.SendMailAsync("email here",
                                      message.Destination,
                                      message.Subject,
                                      msg.Body);
          return Task.FromResult(0);
      }
  </code></pre>
  
  <p>Any ideas as to why this is happening?</p>
  
  <p>TIA</p>