नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
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
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहां आप मुद्दों को बना सकते हैं और उनकी समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं। अधिक जानकारी के लिए, हमारी योगदानकर्ता मार्गदर्शिका देखें।