Events
Mar 17, 11 PM - Mar 21, 11 PM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Configures the delivery format, delivery method, and from address for sending emails.
<configuration>
<system.net>
<mailSettings>
<smtp>
<smtp
deliveryFormat="format"
deliveryMethod="method"
from="from address">
<specifiedPickupDirectory>...</specifiedPickupDirectory>
<network>...</network>
</smtp>
The following sections describe attributes, child elements, and parent elements.
Attribute | Description |
---|---|
deliveryFormat |
Specifies the delivery format for outgoing emails. Acceptable values are SevenBit and International. |
deliveryMethod |
Specifies the delivery method for emails. Acceptable values are Network, PickupDirectoryFromIis, and SpecifiedPickupDirectory. |
from |
Specifies the from address for outgoing emails. |
Attribute | Description |
---|---|
specifiedPickupDirectory |
Configures the local directory for a Simple Mail Transport Protocol (SMTP) server. |
network |
Configures the network options for an external SMTP server. |
Element | Description |
---|---|
<mailSettings> Element (Network Settings) | Configures mail sending options. |
The following example specifies the appropriate SMTP parameters to send email using the default network credentials.
<configuration>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" deliveryFormat="SevenBit" from="ben@contoso.com">
<network
host="localhost"
port="25"
defaultCredentials="true"
/>
</smtp>
</mailSettings>
</system.net>
</configuration>
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Events
Mar 17, 11 PM - Mar 21, 11 PM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register now