Configuring passwords to be sent via email in the web.config file : mailSettings « Configuration « ASP.NET Tutorial






<configuration>
   <system.web>
      <!-- Removed for clarity -->
   </system.web>
    
   <system.net>
    
      <mailSettings>
         <smtp>
            <network host="localhost" port="25" from="a@yahoo.com"
             defaultCredentials="true" />
         </smtp>
      </mailSettings>
    
    </system.net>
   </configuration>








16.21.mailSettings
16.21.1.Configuring passwords to be sent via email in the web.config file