This documentation is archived and is not being maintained.
<mailSettings> Element (Network Settings)
Visual Studio 2010
Configures mail sending options.
<system.net> Element (Network Settings)
<mailSettings> Element (Network Settings)
<mailSettings <smtp> … </smtp> /mailsettings>
The following code example specifies the appropriate SMTP parameters to send e-mail using the default network credentials.
<configuration>
<system.net>
<mailSettings>
<smtp deliveryMethod="network">
<network
host="localhost"
port="25"
defaultCredentials="true"
/>
</smtp>
</mailSettings>
</system.net>
</configuration>
Show: