ASP.NET Tutorial/Configuration/mailSettings

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

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

   <source lang="csharp">

<configuration>

  <system.web>
     
  </system.web>
   
  <system.net>
   
     <mailSettings>
        <smtp>
           <network host="localhost" port="25" from="a@yahoo.ru"
            defaultCredentials="true" />
        </smtp>
     </mailSettings>
   
   </system.net>
  </configuration></source>