ASP.NET Tutorial/Configuration/mailSettings
Версия от 15:30, 26 мая 2010; (обсуждение)
Configuring passwords to be sent via email in the web.config file
<configuration>
<system.web>
<!-- Removed for clarity -->
</system.web>
<system.net>
<mailSettings>
<smtp>
<network host="localhost" port="25" from="a@yahoo.ru"
defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>
</configuration>