title: ASP.NET Identity Confirmation Email Is Plain Text Instead of HTML
body: <p>In an ASP.NET MVC5 C# application I am using the standard code for sending confirmation emails when a user registers, something I've done in multiple projects: </p>
  
  <pre><code>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>Normally when the recipient receives the email, it's content-type is text/html. However, in this one application, the emails arrive with content-type text/plain and the content is not rendered as html, it is rendered as plain text. It should like this:</p>
  
  <p>Please confirm your account by clicking <a href="https://localhost:44309/Account/ConfirmEmail?userId=8b126243-1f78-4e42-87d2-ab3c7c350f99&amp;code=tokengoeshere" rel="noreferrer">here</a></p>
  
  <p>But it looks like this:</p>
  
  <pre><code>Please confirm your account by clicking &lt;a href="https://localhost:44309/Account/ConfirmEmail?userId=8b126243-1f78-4e42-87d2-ab3c7c350f99&amp;code=tokengoeshere"&gt;here&lt;/a&gt;
  </code></pre>
  
  <p>I searched the docs but cannot find any information that indicates why this would be or indeed how to change this behavior.</p>
  
  <p>I also updated to the latest version of the Microsoft ASP.NET Identity Core (2.2.1) thinking that might help, but it didn't have any effect on the issue.</p>
  
  <p>I also tested sending from a Google Apps email account for a different organization (which I use for other apps with this exact same code to send this confirmation email and know it sends as html) in case there are some settings in there that matter.</p>
  
  <p>Any ideas on why it sends as text/plain and how I can fix this?</p>
  
  <p>Thanks!</p>