SmtpSection.DeliveryMethod Property

Definition

Gets or sets the Simple Mail Transport Protocol (SMTP) delivery method. The default delivery method is Network.

C#
[System.Configuration.ConfigurationProperty("deliveryMethod", DefaultValue=System.Net.Mail.SmtpDeliveryMethod.Network)]
public System.Net.Mail.SmtpDeliveryMethod DeliveryMethod { get; set; }

Property Value

A string that represents the SMTP delivery method.

Attributes

Remarks

Valid values for this property are Network, PickupDirectoryFromIis, and SpecifiedPickupDirectory. These values have configurable sub-items and have a corresponding section in the System.Net configuration file. All the sections are camel-cased, to allow the users to match the delivery method with their corresponding section names.

Applies to

Tuote Versiot
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also