title: How to configure sender email credentials for ASP.NET Identity UserManager.SendEmailAsync?
body: <p>I am developing an Asp.net web application. In my application, I am setting up user email confirm and password reset feature. i am using Asp.net built in Identity system. Those features can be enabled following this link - <a href="https://www.asp.net/identity/overview/features-api/account-confirmation-and-password-recovery-with-aspnet-identity" rel="nofollow noreferrer">https://www.asp.net/identity/overview/features-api/account-confirmation-and-password-recovery-with-aspnet-identity</a> according to mention in Visual Studio. </p>
  
  <p>But to follow it, this link is broken - <a href="https://azure.microsoft.com/en-us/gallery/store/sendgrid/sendgrid-azure/" rel="nofollow noreferrer">https://azure.microsoft.com/en-us/gallery/store/sendgrid/sendgrid-azure/</a>. But it is ok, I want to know only one thing in asp.net identity system. That is sending email. According to the commented lines in Visual Studio, I can send reset password email like this below.</p>
  
  <pre><code>await UserManager.SendEmailAsync(user.Id, "Reset Password", "Please reset your password by clicking &lt;a href=\"" + callbackUrl + "\"&gt;here&lt;/a&gt;");
  </code></pre>
  
  <p>That line is simple and readable. But the problem is where can I configure sender email credentials? What settings it uses to send email? How can I change the sender email please? I cannot follow the link as well because Azure link is broken. Where can I set and change those settings? </p>
  
  <p>I tried add this settings in web.config</p>
  
  <pre><code>&lt;system.net&gt;
      &lt;mailSettings&gt;
        &lt;smtp from="testing@gmai.com"&gt;
          &lt;network host="smtp.gmail.com" password="testing" port="587" userName="testing"  enableSsl="true"/&gt;
        &lt;/smtp&gt;
      &lt;/mailSettings&gt;
    &lt;/system.net&gt;
  </code></pre>
  
  <p>But now sending email.</p>