Nota
L-aċċess għal din il-paġna jeħtieġ l-awtorizzazzjoni. Tista’ tipprova tidħol jew tibdel id-direttorji.
L-aċċess għal din il-paġna jeħtieġ l-awtorizzazzjoni. Tista’ tipprova tibdel id-direttorji.
Configures mail sending options.
<configuration>
<system.net>
<mailSettings>
Syntax
<mailSettings>
<smtp>...</smtp>
</mailSettings>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
| Attribute | Description |
|---|---|
| <smtp> Element (Network Settings) | Configures Simple Mail Transport Protocol options. |
Parent Elements
| Element | Description |
|---|---|
| <system.Net> Element (Network Settings) | Contains settings that specify how the .NET Framework connects to the network. |
Example
The following example specifies the appropriate SMTP parameters to send email using the default network credentials.
<configuration>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network
host="localhost"
port="25"
defaultCredentials="true"
/>
</smtp>
</mailSettings>
</system.net>
</configuration>
See also
Ikkollabora magħna fuq GitHub
Is-sors għal dan il-kontenut jista’ jinstab fuq GitHub, fejn tista’ wkoll toħloq u tirrevedi l-problemi u t-talbiet għall-immerġjar. Għal aktar informazzjoni, ara l-gwida għall-kontributuri tagħna.